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!