Why does the track2 function is not working?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hey community
I am using the R2023b version and the track2 function does not respond correctly.
It should work as:[lati , loni] = track2(lat1,lon1,lat2,lon2,number);
This last numbers is automatically 100, however if I change it, matlab still uses 100. Even if I try with 1, or 1000.
댓글 수: 0
채택된 답변
Star Strider
2024년 9월 30일
Try this —
[lati , loni] = track2(lat1,lon1,lat2,lon2,[],[],number);
MATLAB function arguments are positional (except for the name-value pair arguments), so intermediate argument values need to be ‘empty’ to use the default values.
Using an example from the documentation —
number = 250;
[latgc,longc] = track2(40.71,-74.01,48.86,2.35,[],[],number);
latsize = size(latgc)
lonsize = size(longc)
.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!