Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
The following three lines could be used to create a plot of the Sine function: >> a = 3; >> b = 0: pi/a: 2*pi; >> plot(b,sin(b))
조회 수: 1 (최근 30일)
이전 댓글 표시
Kinda new to matlab, nd i want to know how can smoothen this sine function and how i can make its cosine fuction
댓글 수: 0
답변 (1개)
Jos (10584)
2013년 11월 21일
If you split the commands, you might figure it out yourself
a = 3
b = 0:pi/a:2*pi
y = sin(b)
plot(b,y,'o-') % connect the dots
What happens if you give a a different value? (e.g. a = 10)
What happens if you change the function used in line 3?
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!