Engineer - mechanices /ekectronics / signal processing

Average matlab user for 20 years now.

Professional Interests: signal processing, adaptive control, noise and vibration processing

Answered

fft finding oscillation frequency and strouhal number for lift

hello it's difficult to test your code if you share it only as a picture it looks ok but if you want to double check this is...

fft finding oscillation frequency and strouhal number for lift

hello it's difficult to test your code if you share it only as a picture it looks ok but if you want to double check this is...

3 dagar ago | 0

Answered

Move to the next row when reading the .csv file using csvread()

hello why making this so overly complicated ? m = csvread('data_points.csv') % gives : % % m = % % Columns 1 thr...

Move to the next row when reading the .csv file using csvread()

hello why making this so overly complicated ? m = csvread('data_points.csv') % gives : % % m = % % Columns 1 thr...

3 dagar ago | 0

Answered

How to estimate annual and semi-annual signals?

hello you're not stuck anymore below my code (the h parameters computation is the same as DFT coefficients) if you're stisfie...

How to estimate annual and semi-annual signals?

hello you're not stuck anymore below my code (the h parameters computation is the same as DFT coefficients) if you're stisfie...

3 dagar ago | 1

| accepted

Answered

Bring some signals to the same start value and end value

hello if you want all data to start and stop at the same values , you can do that : it works even sampling rates are different...

Bring some signals to the same start value and end value

hello if you want all data to start and stop at the same values , you can do that : it works even sampling rates are different...

4 dagar ago | 0

Answered

How can I read multiple mat files and perform ttest2 function?

hello my single for loop code example enjoy n = 108;; % number of files s = 2; % create combination of 2 elements [comb...

How can I read multiple mat files and perform ttest2 function?

hello my single for loop code example enjoy n = 108;; % number of files s = 2; % create combination of 2 elements [comb...

4 dagar ago | 0

Answered

How can I extract the width of the following graph.

hello this piece of code will give you the angle . Demo based on a half sinus wave. you can easily apply it to your case x= l...

How can I extract the width of the following graph.

hello this piece of code will give you the angle . Demo based on a half sinus wave. you can easily apply it to your case x= l...

4 dagar ago | 1

| accepted

Answered

How to filter all the frequencies from the audio signal.

hello 2 gifts for you today (lucky man !) a code for general spectral analysis examples of digital filters you can use to el...

How to filter all the frequencies from the audio signal.

hello 2 gifts for you today (lucky man !) a code for general spectral analysis examples of digital filters you can use to el...

4 dagar ago | 0

| accepted

Answered

how to convert double .mat file to a column of numbers on excel

hello so this is a very basic code to load the data and store it as one column in an excel file. I am not sure to understand ...

how to convert double .mat file to a column of numbers on excel

hello so this is a very basic code to load the data and store it as one column in an excel file. I am not sure to understand ...

4 dagar ago | 1

Answered

why 50hz can't be removed compeletely?

hello again I like simple solutions - see demo code below adapted to your case I hope 200 dB attenuation can be considered as ...

why 50hz can't be removed compeletely?

hello again I like simple solutions - see demo code below adapted to your case I hope 200 dB attenuation can be considered as ...

4 dagar ago | 0

| accepted

Answered

Digital Signal Processing Filters

hello 1/ this is obviously an IIR filter as it has a denominator, which means the past outputs are also in the recursive equat...

Digital Signal Processing Filters

hello 1/ this is obviously an IIR filter as it has a denominator, which means the past outputs are also in the recursive equat...

5 dagar ago | 1

Answered

why 50hz can't be removed compeletely?

hello 2 gifts for you in the same day (you lucky ! ) a code for spectral analysis and time / frequency analysis a the end , ...

why 50hz can't be removed compeletely?

hello 2 gifts for you in the same day (you lucky ! ) a code for spectral analysis and time / frequency analysis a the end , ...

5 dagar ago | 0

Answered

How to read table from pdf

hello I don't know where the function extractFileText comes from So I'd did it my way : converted the pdf in excel file (on ...

How to read table from pdf

hello I don't know where the function extractFileText comes from So I'd did it my way : converted the pdf in excel file (on ...

5 dagar ago | 0

Answered

Fitting gaussian exponential to logscale

hello this a code that seems to work hope it helps I prefered to simplify as much the work of the optimizer , so first conv...

Fitting gaussian exponential to logscale

hello this a code that seems to work hope it helps I prefered to simplify as much the work of the optimizer , so first conv...

5 dagar ago | 1

Answered

How do I resample to have a uniform number of samples for each cycle of my signal?

hello Cai this little demo code for generating exactly 800 samples between each cycles load('maxamp.mat'); y = maxamp; sam...

How do I resample to have a uniform number of samples for each cycle of my signal?

hello Cai this little demo code for generating exactly 800 samples between each cycles load('maxamp.mat'); y = maxamp; sam...

6 dagar ago | 0

Answered

How to convert Acceleration- Time graph to Acceleration- Frequency graph?

hello you need to do some time / frequency analysis using STFT see specgram demo below : clc clear all %%%%%%%%%%%%%%%%...

How to convert Acceleration- Time graph to Acceleration- Frequency graph?

hello you need to do some time / frequency analysis using STFT see specgram demo below : clc clear all %%%%%%%%%%%%%%%%...

6 dagar ago | 0

Answered

Signal Spectrum Plotting help

hello maybe you are taking about time / frequency analysis ? I can forward you my demo script about spectral analysis , yo...

Signal Spectrum Plotting help

hello maybe you are taking about time / frequency analysis ? I can forward you my demo script about spectral analysis , yo...

6 dagar ago | 0

| accepted

Answered

Importing data from a .ASC file into different columns

hello a quick and dirty code for a 3 variables file example; there is certainly room for making it more generic hope it helps ...

Importing data from a .ASC file into different columns

hello a quick and dirty code for a 3 variables file example; there is certainly room for making it more generic hope it helps ...

8 dagar ago | 0

Answered

Plotting amplitude of individual frequencies over time.

hello this is a typical case were my little code snipset can be useful !! if you need to refine the frequency resolution, in...

Plotting amplitude of individual frequencies over time.

hello this is a typical case were my little code snipset can be useful !! if you need to refine the frequency resolution, in...

9 dagar ago | 0

Answered

Implementing the Chorus Effect

hello again so this could be considered as a vectorized version of the original code. You can add multiple delayed versions of ...

Implementing the Chorus Effect

hello again so this could be considered as a vectorized version of the original code. You can add multiple delayed versions of ...

9 dagar ago | 0

Answered

How does resample exactly work?

hello everything is explained if you type help resample resample Resample uniform or nonuniform data to a new fixed rate. ...

How does resample exactly work?

hello everything is explained if you type help resample resample Resample uniform or nonuniform data to a new fixed rate. ...

11 dagar ago | 0

Answered

Determine acceleretion sensitivity for accelerometer

hello the ADXL specs says the bandwith is 0 to 1500 Hz. The mems accels do measure static (gravity), so make sure you have not ...

Determine acceleretion sensitivity for accelerometer

hello the ADXL specs says the bandwith is 0 to 1500 Hz. The mems accels do measure static (gravity), so make sure you have not ...

11 dagar ago | 0

| accepted

Answered

Condition for Specific Data collection

hello see example below this could be interesting for data 1 example but the two other data it's not feasible unless someo...

Condition for Specific Data collection

hello see example below this could be interesting for data 1 example but the two other data it's not feasible unless someo...

11 dagar ago | 1

| accepted

Answered

importing data and plotting

hello impordata or readtable will do the trick example with impordata : importdata('abg20000212dminn.txt') ans = 14...

importing data and plotting

hello impordata or readtable will do the trick example with impordata : importdata('abg20000212dminn.txt') ans = 14...

11 dagar ago | 0

| accepted

Answered

Curve is not fitting

hello Simona I had to modify the model fit equation to get it to work I used : = a.*(1-1./(1+exp(b.*(x-c)))); instead of y=...

Curve is not fitting

hello Simona I had to modify the model fit equation to get it to work I used : = a.*(1-1./(1+exp(b.*(x-c)))); instead of y=...

11 dagar ago | 1

Answered

How can I rotate the Labels in Heatmap Chart ??

hello this is an example for 45° orientation, put your prefered angle set(gca,'XTickLabelRotation',45)

How can I rotate the Labels in Heatmap Chart ??

hello this is an example for 45° orientation, put your prefered angle set(gca,'XTickLabelRotation',45)

11 dagar ago | 0

Answered

How to make a signal have a slower sample rate

so this would be the code : samples = 1000; input_signal = 1 + sin(2*pi*(1:samples)/samples)+ 0.025*rand(1,samples); decim_f...

How to make a signal have a slower sample rate

so this would be the code : samples = 1000; input_signal = 1 + sin(2*pi*(1:samples)/samples)+ 0.025*rand(1,samples); decim_f...

11 dagar ago | 1

| accepted

Answered

how to import average of monthly data from excel file?

hello this is a simple code that will extract monthly data and look for solar radiation above 200 each month data will then...

how to import average of monthly data from excel file?

hello this is a simple code that will extract monthly data and look for solar radiation above 200 each month data will then...

12 dagar ago | 1

| accepted

Answered

How to make a signal have a slower sample rate

hello for integer factor downsampling use : decimate for non integer factor resampling use resample (not needed in your case...

How to make a signal have a slower sample rate

hello for integer factor downsampling use : decimate for non integer factor resampling use resample (not needed in your case...

12 dagar ago | 0

Answered

Designing IIR Filters using Bilinear Transform

so final and last version of the answer : N = 2; fc = [500 1000]; FS = 8000; fcn = 2*fc/FS; T = 1/FS; freq = logspace(2...

Designing IIR Filters using Bilinear Transform

so final and last version of the answer : N = 2; fc = [500 1000]; FS = 8000; fcn = 2*fc/FS; T = 1/FS; freq = logspace(2...

12 dagar ago | 0

| accepted

Answered

Excluding matrix indices which fall outside of a specified area.

hello this would be my suggestion ... n = 50; Z = peaks(n); %returns an n-by-n matrix. Z = abs(Z); Z = Z./max(max(Z)); Z...

Excluding matrix indices which fall outside of a specified area.

hello this would be my suggestion ... n = 50; Z = peaks(n); %returns an n-by-n matrix. Z = abs(Z); Z = Z./max(max(Z)); Z...

12 dagar ago | 0

| accepted