How do I make a range for a graph that is from 0 to 2pi in increments of pi/4?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Caroline F
am 25 Mär. 2022
Kommentiert: Caroline F
am 25 Mär. 2022
I think I am just forgetting something simple, but how do I make a range for a graph that is from 0 to 2pi in increments of pi/4? I added my code below.
Theta = linspace(0,(pi)/4,2*(pi));
%%% Part B
y5 = cos(Theta);
y6 = sin(Theta);
%%% Part C
figure()
plot(Theta,y5, Theta,y6)
xlabel('Theta')
ylabel ('y5(Theta) and y6(Theta)')
legend('y5','y6')
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!