Info

此问题已关闭。 请重新打开它进行编辑或回答。

how can improve the performance

1 次查看(过去 30 天)
cglr
cglr 2019-11-16
关闭: MATLAB Answer Bot 2021-8-20
I would like to improve the performance of my code. How can make it more efficient which includes loop and statements ?
for i = 1:count
if(myArray(i,2) > maxVal)
maxVal = myArray(i,2);
end
end
Kind regards,
Thanks.

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by