Obtain maximum value of variable over multiple iterations?
古いコメントを表示
I plan to run my code several times using a loop and want to record the maximum value of the variable 'alt.' How would I go about doing this?
%
yr=2018;
mnth=7;
dy=0:31;
hr=0;
min=0;
sc=0;
d=datetime(yr,mnth,dy,hr,min,sc);
JD_TT=juliandate(d);
CooType='q2000';
[X,Y,Z]=moonpos(JD_TT,CooType);
[lat,lon,alt]=ecef2lla(X,Y,Z);
end
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Clocks and Timers についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!