my simulation looks like this
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.
What exactly am I doing wrong.
1 Comment
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/591433-what-am-i-doing-wrong-my-frequency-should-be-like-the-picture#comment_1006609
Direct link to this comment
https://in.mathworks.com/matlabcentral/answers/591433-what-am-i-doing-wrong-my-frequency-should-be-like-the-picture#comment_1006609
Sign in to comment.