Hello.(adsbygoogle = window.adsbygoogle || []).push({});

I have recently transferred courses, and am expected to know how to use Matlab, but have never been taught before. Therefore I have been trying to go through and teach myself some of the bits I will need to know from it.

We were told we had to know how to do certain things already and I have been going through these.

Create a sine wave, calculate the FFT of the sine wave, extract the frequency of the FFT of the sine wave from the FFT data, and know what happens to the time-domain and FFT-domain of this data if the phase of the sine wave were shifted by a few degrees.

I tried with the help of the getting started guide in Matlab itself and input:-

x=0:pi/100:2*pi

y=sin(x)

plot(x,y)

y=fft(x)

And couldn't do any of the others.

Would appreciate some help.

Thank you.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Matlab - sinewaves

Loading...

Similar Threads - Matlab sinewaves | Date |
---|---|

Matlab Coding angular spectrum of waves in a fluid | Thursday at 7:30 AM |

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

**Physics Forums - The Fusion of Science and Community**