Amplitude vs Frequency plot

6 ビュー (過去 30 日間)
Danielle Wise
Danielle Wise 2021 年 2 月 3 日
コメント済み: Igor Arkhandeev 2021 年 2 月 4 日
I have a steady response formula ysteady(t)=18 + 6sin(240*pi*t - 0.120).
I need to write a script that plots the amplitude spectrum (Amplitude [V] vs Frequency [Hz]) using a sample of 64 values sampled at 512 samples/s. The spectrum has a resolution of 8 Hz.
I am very new to MATLAB, please help.
  2 件のコメント
darova
darova 2021 年 2 月 4 日
Please show some of your attempts. Start from plot
Igor Arkhandeev
Igor Arkhandeev 2021 年 2 月 4 日
This example is so simple. Try to change it for your target.
t = linspace(0,2*pi,100);
ysteady(1:length(t)) = 18 + 6*sin(240*pi*t - 0.120);
plot(t, ysteady);

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by