Question: My Matlab code is not plotting. Could you please tell me what is wrong? the code: % defyining the signal attributes x = 1 +
My Matlab code is not plotting. Could you please tell me what is wrong?
the code:
defyining the signal attributes
x cospin;
n :;
ftt calculation
X fftx;
W linspacepi;
L lengthX;
plotting the signal
figure;
plotW absXL 'LineWidth',;
titleFFT Range to PI;
xlabelW to pi;
ylabelMagnetude;
Xshift fftshiftXL;
Wpipi linspacepi pi;
figure;
plotWpipi absXshift 'LineWidth',;
titleFFT Shift in the Range of pi to pi;
xlabelW pi to pi;
ylabelMagnetude;
Ts e;
fs Ts;
f linspacefs fs;
figure;
plotf absXshift 'LineWidth',;
titleFFT in the Range of fs to fs;
xlabelW fs to fs in kHz;
ylabelMagnetude;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
