What am I doing wrong. My frequency should be like the picture.
1 回表示 (過去 30 日間)
古いコメントを表示
my simulation looks like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/358618/image.jpeg)
and below is my code.
clc
clear all
a = 2;
b = 3;
c = 0.25;
d = 1;
SimData = sim('Jgerman_Part_a_Model');
Yvals=SimOut;
Xvals=TimeOut;
figure()
plot(Xvals,Yvals)
grid
title('Problem 1.2a Simulated Output')
xlabel('Time')
ylabel ('Output Amplitude')
plot looks like this but it doesn't match to the expected graph below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/358621/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/358624/image.jpeg)
What exactly am I doing wrong.
採用された回答
Ameer Hamza
2020 年 9 月 10 日
Double-click the "Sine Wave" block and set the frequency to 2*pi.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!