麻烦大家一个小问题
楼主 · 1 楼
各位大侠,我的一个小程序里有这么一段,目的是找到一维行向量d中最小值所对应的初始点y(i);
d(1,:)
a=length(d(1,:));
for i=1:a
if d(i)=min(d(1,:));
y(i)
end
end
可运行后会出现如下问题
The expression to the left of the equals sign is not a valid target for an assignment.请各位大侠指教
d(1,:)
a=length(d(1,:));
for i=1:a
if d(i)=min(d(1,:));
y(i)
end
end
可运行后会出现如下问题
The expression to the left of the equals sign is not a valid target for an assignment.请各位大侠指教