What am I doing wrong. My frequency should be like the picture.

조회 수: 1 (최근 30일)
Jorje German
Jorje German 2020년 9월 10일
댓글: Jorje German 2020년 9월 12일
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.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 10일
Double-click the "Sine Wave" block and set the frequency to 2*pi.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by