Creating a sinusoidal graph

8 Ansichten (letzte 30 Tage)
Hami the Penguin
Hami the Penguin am 19 Okt. 2019
Beantwortet: Stephan am 19 Okt. 2019
Hello,
I have a homework to do using matlab, and it is asking me to create three lines:
thumbnail_image.png
It says to plot exactly two cycles of the lowest frequency, and this is what I did:
thumbnail_image (1).png
I randomly typed 100 numbers for the values of t, but and set the x axis length to 2 so that the red line with the lowest frequency would have exactly two cycles.
However, when I change the number of values for t, the number of waves change. The question doesn't say anything about the number of values for t. Maybe I am interpreting the question incorrectly. Can someone please help me understand this question?
Thank you.

Antworten (1)

Stephan
Stephan am 19 Okt. 2019
Note the frequency of your signals. Are 100 values really enough to display this frequency correctly? Hint: Think about something like sampling rate. Does the number of waves still change if you use asampling rate bigger then 2 times the frequency? I think These questions are answer enough if you think about it and make some expieriences with it.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by