How does Matlab work?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
I would like to do this operation:
maxi=max(a,[],'all')
mini=min(a,[],'all')
a=(a-mini)/(maxi-mini)
maxi=max(b,[],'all')
mic=min(b,[],'all')
b=(b-mini)/(maxi-mini)
If I enter this code in matlab will Matlab do this ?
Maximum of a=> maxi
Minimum of a=> mini
Recalculate every value of a by subtracting -mini from i and dividing it by (maxi minus mini).
Maximum of b=> maxi
Minimum of b=> mini
Recalculate every value of b by subtracting -mini from i and dividing it by (maxi minus mini).
So matlab wouldn't mix up the order and will do everything one after another?
Thanks for your help!
2 件のコメント
採用された回答
Ameer Hamza
2020 年 5 月 17 日
編集済み: Ameer Hamza
2020 年 5 月 18 日
No, MATLAB will not mix up the order. Also, MATLAB is interpreted language, so everything is executed in the order you have written.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!