Info
此问题已关闭。 请重新打开它进行编辑或回答。
problem in vectorize script
1 次查看(过去 30 天)
显示 更早的评论
Hi
I want to improve my script as:
a=round(50*rand(5,7)+50);
for ii=1
for jj=1
if a(ii,jj)>= 60
b1=2*a(ii,jj)
else
b2=-1*a(ii,jj)
end
end
end
b=b1+b2;
to vetcorized. How can I do that?
Thanks a lot
Mani
1 个评论
回答(2 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!