Answered
plotting noise spectrum of the data
hello Nirala this is my go to fft analysis code for signals it does fft with averaging and spectrograms you can modify the ...

5 years ago | 0

Answered
how to get Y Value from a plot having 3 curves or more as shown in figure?
hello you can try this code clc clearvars % dummy data n=100; x=(0:n-1)/n; y1 = 3*sin(1.5*x)+ 0.01*randn(1,n); y2 =...

5 years ago | 0

Answered
For loop the last end first values problem
hello your code works - depends what you do in the first loop. here with rand to create different outputs for A(end) you cou...

5 years ago | 0

Answered
How to solve the error and get p2 value?
hello your errors are due to trying to access a structure in a wrong way , like : m1=xa(end,2); I suppose the intention is ...

5 years ago | 1

| accepted

Answered
Calculating number in a string
hello you can add these lines to your code : for ci = 1:nLines if size(fileStr{ci})>0 disp([num2str(ci) ' : ...

5 years ago | 0

Answered
Equivalent matlab function for python librosa.resample
hello Betty you can do this to upsample the data : n = length(UL_filter); nx = length(x); % code for upsampling data x_...

5 years ago | 0

| accepted

Answered
how to get the row and column number of a specific value in an array
hello my suggestion : it gives row = 2 and col = 9 (e = 15) D = [42 24 20 17 20 24 19 18 18 1...

5 years ago | 0

| accepted

Answered
How can I plot a curve with different ranges for x?
So basically , the updated code as guessed from your initial request clear all; clc; %% r = 3 tau_E = 3.69; % average time i...

5 years ago | 0

| accepted

Answered
Splitting Graph into Sections based on Peaks Found
hello David quick and dirty trial to make your code work automatically and as good as it can in my limited time availability ...

5 years ago | 0

| accepted

Answered
Normalize graph chebyshev filter
hello I tried an iterative correction method . I plot the frf of the filter in dB and 0.7 then correspond to the - 3 dB cutoff...

5 years ago | 0

| accepted

Answered
Correcting a y-shift when filtering signal in the frequency domain
hello Josh when it comes to smooth a noisy signal, I usually go for smoothdata. Code is simple and it works well , no delay bet...

5 years ago | 1

| accepted

Answered
Importing unv file from Simcenter Testlab
hello try the attached functions , it works for uff and unv files hope it helps

5 years ago | 0

Answered
How to get plot in time scale instead of number of image frames?
hello as you know the time interval and the number of frames , it's fairly simple to create a time vector in seconds updated...

5 years ago | 1

Answered
Remove gravity component from accelerometer data
hello Francesco the simplest method is to simply remove the mean value of your signal. another approach is to use a high pass...

5 years ago | 0

| accepted

Answered
Using writetable in a for loop to create new txt/csv files for each step
hello seems you were one inch or even less to a solution . Now it was a bit unclear to me if you wanted to save the new tabl...

5 years ago | 1

Answered
How can I plot the mid-curve or interpolant between several curves?
Hello Leonardo this is my suggestion; to be able to do math between different sets of data (like doing the average) you have f...

5 years ago | 1

| accepted

Answered
Loading multiple mat files and plot them right
hello based on the first post you can do that : tested with dummy data ( commented lines) of different size ... so it works w...

5 years ago | 0

| accepted

Answered
How to alter data (multiply) from all the columns of multiple text files in a folder
hello this is my suggestion ... the natural sorting order of the files may not be critical here, but it may be helpful anoth...

5 years ago | 1

| accepted

Answered
How can I plot a data set after applying cascaded filter?
hello Soeun I did a couple of modifications / corrections in your code please note that for the notch filter , the low and hi...

5 years ago | 0

Answered
How to visualize time frequency information of time series signal using continuous wavelet transform
hello I used this FEX submission as I don't have the Wavelet Toolbox cmccrimm/Continuous-Wavelet-Transform - File Exchange -...

5 years ago | 0

Answered
How to have the input files labels in the output files
hello my 2 cents suggestion : imgFolderStokes = fullfile('Data/Stokes_Parameters/'); imgStokes = imageDatastore(imgFolderSt...

5 years ago | 0

Answered
How to compute poles-zeros using matlab?
hello I hope the coefficient in b and a are correct (then the zeros and poles are inside the unit circle ) , because the first...

5 years ago | 0

Answered
Integrate Acceleration to velocity, wrong plot
so finally... try this / adapt it to your own needs . I can further help you if needed FYI : this code does two integrations...

5 years ago | 0

Answered
Differencing Across 2 Different Sized Matrices
hello I think this works fine with a single loop : % dummy data Matrix_1 = randn(1440,721,480); Matrix_2 = randn(1440,721,...

5 years ago | 0

| accepted

Answered
How to detect point before a positive ramp
hello I have combined threshold crossing detection with second order derivative this is the result on a noisy pulse train .....

5 years ago | 0

| accepted

Answered
How to overcome reaching NaN in trying to write Secant Method?
hello there is one point that you missed , is to break / stop the iteration as soon as the variation of x becomes lower than a...

5 years ago | 0

| accepted

Answered
How to read in a .txt and arrange the data into a scheme?
hello this is the best solution (IMO) : it will generate a table with identified variables names you can easily access : ...

5 years ago | 0

Answered
FIltered signal not matching with the original signal.
hello I see that you are doing a detrend action on your data. This will remove the dc (mean) value of the signal , so no surpr...

5 years ago | 0

| accepted

Answered
calculate speed and distance from gear wheel pulses sensor
hello Frederico Had to guess the sampling rate as it's not defined in your post... so I estimated it around 100 kHz. I did a...

5 years ago | 0

| accepted

Answered
Inactivate PID controller for 3 seconds
hello simply add a switch block at the input side of the PID the first signal (input) of the switch is zero, the second is t...

5 years ago | 1

| accepted

Load more