下面这段代码老是出现In an assignment A(I) = B, the number of elements in B and I must be the same
f_ji=[];
f_ou=[];
for i=1:length(f)
if mod(i,2)~=0
f_ji=[f_ji,f(i)];
else
f_ou=[f_ou,f(i)];
end
end
for i=1:length(f_ji)
g(i)=d(:,f_ji(i):f_ou(i));
end
哪里出错了
人气:402 ℃ 时间:2020-02-05 14:03:47
解答
像似 g(i)=d(:,f_ji(i):f_ou(i)); 错了.
出错信息说,A(I) = B 这种形式的赋值语句,B 里的元素个数 与 I 要相等.
推荐
- ? In an assignment A(I) = B, the number of elements in B and I must be the same.
- MAtlab中To RESHAPE the number of elements must not change.
- All matrices on a row in the bracketed expression must have the same number of rows.
- The atomic number of an element X is 15.The number of electrons in an anion of X is?
- 甲乙分别后,沿着铁轨反向而行.此时一列火车匀速地向甲迎面驶来,列车在甲身旁开过,用了15s;然后在乙身旁开过,用了17s.以知两人的步行速度都是3,6km/h,这列火车有多长?
- 水沸腾时的特点 是()
- 一根钢管,用去五分之三米,还剩五分之二米.
- many,my,i,schoolbag,in,have,books (重组句子)
猜你喜欢