- Read the documentation about vectorization .
- Look at some examples online.
- Try writing your own solution, perhaps on a simplified test case first.
- Don't expect other people to write your code for you.
- Write a question here when you have a specific problem to be fixed.
Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to vectorize given matlab code?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
i am new to matlab. can anyone please vectorize this code.
Thanks
for row=1:n
for col =1:n
Fn(row,col)= cost(row,col)*W(row,col);
if W(row,col)>0
Fn(row,col) = Fn(row,col)+FC(row,col);
end
end
end
1 件のコメント
Stephen23
2014 年 9 月 5 日
編集済み: Stephen23
2014 年 9 月 5 日
Answer: yes, YOU can.
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!