MATLAB Answers

generate a sine and cosine wave with 4 cycles .

조회 수: 3(최근 30일)
MICHKEL ANGLO J
MICHKEL ANGLO J 2021년 7월 25일
답변: Jan 2021년 7월 25일
Pls give be a code to generate a sine and cosine wave with 4 cycles . No specified frequency just want four cycles.
  댓글 수: 2
MICHKEL ANGLO J
MICHKEL ANGLO J 2021년 7월 25일
U mean x=0:1:3; y=sin(x); stem(x,y);is it crt. I want discrete so I am using this stem fn. @jan

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2021년 7월 25일
0:1:3 is [0,1,2,3]. This is less than 4 cycles. 4 cycles mean:
x = 0:0.1:8*pi
stem() is working. plot(x,y, '.') is an option also.

추가 답변(0개)

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by