Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to use "if" statement properly?
2 次查看(过去 30 天)
显示 更早的评论
i am performing an element -wise operation on 2 columns, A & B.
1. z=B./A
if z is less than 1 then reverse operation for that element and multiply by -1
2. if z<1 3. (A./B)*-1 end but it does not work. this should be simple. can someone help please thanks jb
1 个评论
回答(1 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!