Plotting with a step
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
plot cos(a), -90 < a < 90, with a step of 1 degree
Antworten (1)
Star Strider
am 3 Sep. 2020
0 Stimmen
2 Kommentare
Triston Pryor
am 7 Sep. 2020
Star Strider
am 7 Sep. 2020
The step works (the default step is 1, as the documentation states):
a = -90:90;
Note that the argument is in degrees, however the cos function accepts radian arguments. That is likely the problem. Since this appears to be homework, I leave that for you to solve.
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!