generate a sine and cosine wave with 4 cycles .
Show older comments
Pls give be a code to generate a sine and cosine wave with 4 cycles . No specified frequency just want four cycles.
2 Comments
Jan
on 25 Jul 2021
This is not twitter: no # before the tags.
The questions sounds like a homework. Then the forum will not solve it fr you, because this would be a drawback for your success.
Please post, what you have tried so far and ask a specific question to your code. You will need 1 line of code only and the commands: plot, sin, cos. With a:b:c you create a vector from the value of a in steps of b until c.
MICHKEL ANGLO J
on 25 Jul 2021
Accepted Answer
More Answers (1)
Naveen
on 16 Nov 2024
0 votes
t=0:0.2:8*pi; X=cos(t); Plot(t,x)
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!