How to plot y = cos(pi/4)
1 回表示 (過去 30 日間)
古いコメントを表示
How do you plot y = cos(pi/4)? Thank you
2 件のコメント
Roger Stafford
2017 年 10 月 26 日
That is a constant value, namely 1/sqrt(2). It will not give you something to plot.
採用された回答
Roger Stafford
2017 年 10 月 26 日
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-‘)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Line Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!