Hello, I have 4 set of .csv files with 2 columns of data and it has 1000 entries of time and voltage. Now i have created scope.m function to plot graph from the .csv file. But how can i use FFT in the function which has two entries.
function [Vs, t] = scope(filename)
Need to implement FFT:(
plot(t,Vs); title('Imported 0-scope Data'); xlabel('Seconds'); ylabel('volts'); grid on; grid minor; end
There are two csv files named: scope_0 and scope_1, i want to eliminate the vibration signals of scope_0 from scope_1 before implementing FFT:(

 Risposta accettata

Star Strider
Star Strider il 28 Nov 2017
You signal is simply broadband noise. I do not know how you want to ‘eliminate the vibration signals of scope_0 from scope_1’. I simply subtracted them.
[D1,S1,R1] = xlsread('scope_1.csv');
[D0,S0,R0] = xlsread('scope_0.csv');
D(:,2) = D1(:,2)-D0(:,2);
t = D1(3:end,1);
v = D(3:end,2);
L = size(t,1);
Ts = mean(diff(t));
Fs = 1/Ts;
Fn = Fs/2;
FTv = fft(v)/L;
Fv = linspace(0, 1, fix(L/2)+1)*Fn;
Iv = 1:length(Fv);
figure(1)
plot(Fv, abs(FTv(Iv))*2)
grid
Subtracting noise from noise yields noise.
Good luck!

6 Commenti

Firstly, I thank you very much for your answer. I appreciate that.
Well, .csv data is taken from the planetary gearbox by using an accelerometer, and the oscilloscope which is set, so that each 1 Volt is equal to 1 G (Gravity Force). scope_0 is the vibration data of drill which used to rotate the sun gear shaft.
The part number of the Accelerometer is: Bruel & Kjaer engineering company Type: 4332 Serial: 322482 single axis accelerometer.
Please find the attachment for the experimental images.
Thank you very much again.
Star Strider
Star Strider il 29 Nov 2017
My pleasure.
Interesting, although I still do not see that there is anything in your signals other than broadband noise.
Hi,
I want to apply dwt(discrete wavelet transform) for the given noise data scope_1. can you help me please.
Star Strider
Star Strider il 4 Dic 2017
I do not have enough recent experience with the Wavelet Toolbox to help you with it.
See the documentation on Denoising and Compression (link).
Hi I do have one small question about the FFT graph, what is the title of x and y-axis. I mean the graph in FFT is in between *
Star Strider
Star Strider il 7 Dic 2017
The x-axis is frequency, the y-axis is amplitude (or energy).

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by