Hi all
I have some ".mat" files. i want to display the frequency domain of them. I tried spectrum analyzer block in simulink. but it does not worked. so i tried to make ".txt" file of this blocks using this syntax:
" load(file.mat')
>> Conten=who;
>> save('file.txt',Conten{:},'-ascii')
after getting ".txt" file, i used following syntax to display frequency domain:
"signal=load('file.txt');
N=length(signal);
fs=256;
fnyquist=fs/2;
plot(abs(fft(signal)))
xlabel('frequency');
ylabel('magnitude')
title('Double-sided Magnitude Spectrum')
axis tight"
but i was not successful. can anybody help me please?!
i attached ".mat" file here.
regards
mohammadreza meindai