Respondida
How to assign time on x-axis in emd?
hello if you know your sampling frequency (Fs) of the original data , and the length of the data , it's fairly straithforward ...

más de 5 años hace | 0

Respondida
time domain and frequency domain plot
hello see example to do averaged fft and spectrogram hope it helps

más de 5 años hace | 0

| aceptada

Respondida
How to import a sequence of file .txt
hello Marco see below an example how to read all txt files inside a folder and do the batch processing - like here I simply do...

más de 5 años hace | 2

| aceptada

Respondida
Adding a sound wave to a wav file
hello if the two have same sampling frequency, you can add them together like z = wav1 + wav2; but make sure that the output...

más de 5 años hace | 0

Respondida
to delete specific lines/text from a .txt file
hello see below my code and it's output (txt file attached) clc clearvars Filename = 'data.txt'; result = extract_da...

más de 5 años hace | 0

Respondida
Create Moving Average filter WITHOUT filter() function
hello try this fs = 200; %sampling frequency Ts = 1/200; %sampling time t = 0:Ts:1; x = sin(2*pi*2*t) + sin(2*pi*10*t) ...

más de 5 años hace | 0

| aceptada

Respondida
How do I pass the signal to the frequency domain?
hello see below a code to do spectral analysis (example) but to me you're confusing fft with histogram. The fft spectrum will...

más de 5 años hace | 0

Respondida
Trying to plot specific values from a vector
hello this is my suggestion - I put the equations in a sub function to make it easy after to do a for loop for multiple To4 va...

más de 5 años hace | 0

| aceptada

Respondida
Residual vs Iteration Plot
hello code fixed : L = 0.05; T_w = 5; T...

más de 5 años hace | 0

| aceptada

Respondida
Select Data Column With Header are not in the first row
hello see below example : opts = detectImportOptions("Document1.txt","NumHeaderLines",12); opts.SelectedVari...

más de 5 años hace | 0

| aceptada

Respondida
Quick question regarding CSV file reading.
hello my quick suggestion to the quick question fid=fopen('cycle1.csv'); e=textscan(fid,'%s','headerlines',1); e_splitted ...

más de 5 años hace | 0

| aceptada

Respondida
How to sum two data sets to get a best match of another data set?
hello see demo below : I added some noise on y3 to see the robustness of fminsearch got the results : a = 3.0379 b =...

más de 5 años hace | 0

| aceptada

Respondida
Why this code gives error?
hello it works better this way : plot(f,20*log10(FFT_abs/max(FFT_abs)),'b+-','linewidth',3);

más de 5 años hace | 0

Respondida
FFT Function not working with multiple columns
hello first , xlsread is a bit outdated , use importdata instead second, here's a generic code for time and frequency analysi...

más de 5 años hace | 1

| aceptada

Respondida
How to get a velocity graph from recorded displacements and times?
hello to get velocity , you need the first derivative of the displacement, for acceleration, it's the second derivative exa...

más de 5 años hace | 0

Respondida
I have a time series signal which is needed in the frequency domain
hello maybe this can be starting point further refinement would be to have the frequency axis of the spectrogram in log scal...

más de 5 años hace | 0

Respondida
Extract data between specific indicators from txt file
hello this is one solution - hope it helps ! tested with the attached txt file = readlines('data.txt'); data_str = 'R1'...

más de 5 años hace | 0

Respondida
Problem in the data fitting with custom equation
hello here you are : t = [1.00E-07 2.00E-07 5.00E-07 1.00E-06 2.00E-06 5.00E-06 1.00E-05 ...

más de 5 años hace | 0

| aceptada

Respondida
how to find the smallest point before rising limb and then calculate the gradient between that point and peak ??
hello once you have found the x location of the B point , let's say is xB , then you can find xA knowing the this point should...

más de 5 años hace | 0

Respondida
Manual implementation of spectogram function
hello I share with you my own version , hope it helps ! notice i always use hanning window and the correction factor for ampl...

más de 5 años hace | 0

Respondida
How to align the power plot correctly?
hello for me it would make sense to add simply half the buffer lenght to your time vector in the second graph, so that the pow...

más de 5 años hace | 1

| aceptada

Respondida
Butterworth filter for ecg signal in healthy people
hello dear all, an alternative using a 5th order IIR filter to remove the usual 50 Hz and harmonics mains hum LD = load('ECG_...

más de 5 años hace | 0

Respondida
saving data in a text file
hi again you were one micro inch from the solution : simply add the transpose operation on the data matrix to get it oriented...

más de 5 años hace | 0

Respondida
How do I calculate power for each signal?
hello if you want to compute a running rms value , you can use the movstd function - see help movstd and use K = fs=8192 to a...

más de 5 años hace | 1

Respondida
How to set threshold point to the first peak arrival?
hello I wonder why doing the complex fft / ifft to remove low frequency signal this can be done easily still in time domain ...

más de 5 años hace | 0

| aceptada

Respondida
interp1 not working as expected and returning the same negative index for multiple query points (sample code and sample data included)
hello why do not use this crossing function to get the positive slope and negative slope crossing point to a given value ? l...

más de 5 años hace | 1

Respondida
Find the second signal points (x, y location) exactly the same place of the first signal peak (x, y) matlab
hello hope this helps you see function attached load('Value.txt'); x = Value(:,1); y = Value(:,2); t = 1:length(x); th...

más de 5 años hace | 1

| aceptada

Respondida
Why the amplitude of theFFT trasform is not equal as the amplitude of the input signal?
hi again I was not happy to see that your code needed a very high sampling rate to display correctly the 5 frequencies this ...

más de 5 años hace | 0

| aceptada

Respondida
Why the amplitude of theFFT trasform is not equal as the amplitude of the input signal?
hello FYI see code below it iplement a peak hold fft averaging technique; also the spectrogram principle is coded (so you can...

más de 5 años hace | 0

Respondida
filtfilt vs self coded filtfilt giving different results.
hello IMHO the most obvious error is that your second simulation runs on a completely different filter see the second time y...

más de 5 años hace | 0

Cargar más