time VarNamel VarName VarNamed VarNames pressure VarName VarName ?? ? ?? ·?? 0.0
ID: 3698662 • Letter: T
Question
time VarNamel VarName VarNamed VarNames pressure VarName VarName ?? ? ?? ·?? 0.006 0141 05 1.0130-05 1.0133-05 00041 0 0023 2.3040-04 0128-05 10133-0 0143-05 1.01430 0138-05 1.0146- 0131+-OSI ,01416-05 0130 05 1.01-0 0141-05 1.0141 001 0.011 0.012 00054 0.00112.3040 04 0.004 0 0080 0.0028 0054 2.3940-0 10141 1013 01416-010146-0 10140- 0.0041 004 00100041 0.01 0.01 0 0007 0001 1.01 0125-05 1.0130-05 Using Matlab program (plot function),I drew this Time- Pressure graph. Tme (sec) Using FFT(fast fourier transform) function in Matlab draw this graph and get the value of frequency. How can write the code using FFT function in Matlab?? Please tell me the matlab coding program, I have toExplanation / Answer
As the question was not very clear, I hope this is the answer you expected.
From the information specified in your question:
L = 6000; % Length of signal (in milliseconds)
Fs = 1000; % Sampling frequency (per second)
Define the frequency domain f and plot the single-sided amplitude spectrum A1:
f = Fs*(0:(L/2))/L;
To compute the Fourier transform of the signal, graw the graph and to find frequency:
Y = fft(pressure);
A2 = abs(Y/L);
A1 = A2(1:L/2+1);
A1(2:end-1) = 2*A1(2:end-1);
plot(f,A1)
xlabel('Frequency')
ylabel('Magnitude')
I hope this solves the problem. :)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.