How to plot y = cos(pi/4)
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
James Crowe
am 26 Okt. 2017
Kommentiert: James Crowe
am 26 Okt. 2017
How do you plot y = cos(pi/4)? Thank you
2 Kommentare
Roger Stafford
am 26 Okt. 2017
That is a constant value, namely 1/sqrt(2). It will not give you something to plot.
Akzeptierte Antwort
Roger Stafford
am 26 Okt. 2017
Choose upper and lower limits of x as a and b. Choose the desired number of plot points as n.
x = linspace(a,b,n);
y = repmat(cos(pi/4),1,n);
plot(x,y,’y-‘)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Line Plots 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!