Smallest change for a please
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I have a data for angle in degrees: deg=[10 10 270], and would like to calculate smallest change ie ans=(0 0 80)
2 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 11 Okt. 2015
80 degrees is not the difference between 10 and 270. 100 degrees is the difference between 10 and 270. You have to pass down through the 10 to 0 degrees and then travel another 90 degrees to reach -90 degrees = 270 degrees, and that is a total of 100 degrees.
4 Kommentare
Walter Roberson
am 11 Okt. 2015
I had added the 0 because initially you wanted 3 outputs for 3 inputs.
Siehe auch
Kategorien
Mehr zu Elementary Math finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!