How does Matlab work?

조회 수: 1 (최근 30일)
Max Behr
Max Behr 2020년 5월 17일
편집: Ameer Hamza 2020년 5월 18일
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
Stephen23
Stephen23 2020년 5월 17일
Why not just try it and find out?
Max Behr
Max Behr 2020년 5월 17일
I am afraid of killing the complete file/system :)

댓글을 달려면 로그인하십시오.

채택된 답변

Ameer Hamza
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.
  댓글 수: 1
Max Behr
Max Behr 2020년 5월 17일
Thanks.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by