looks so easy but makes big problems!
6 次查看(过去 30 天)
显示 更早的评论
hi Im an amateur programmer!!!!!!!! take a look at this
for j=1:b
if s(i1,j)==s(i2,j)
v{i1,i2}(1,j)=0;
end
if s(i1,j)~=s(i2,j)
v{i1,i2}(1,j)=1;
end
if j==b
y=sum(v{i1,i2});
end
if y==1 && v{i1,i2}(1,j)==1
w{i3}(h,:)=s(i1,:);
w{i3}(h,j)=9;
h=h+1;
end
end
when I run it, it has this error: ??? Undefined function or variable 'y' who knows what the problem is????????
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!