Engineer - mechanices /ekectronics / signal processing

Average matlab user for 20 years now.

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

Answered

Why is frequency of graph differing?

hi - official answer this time the PSD concept is valid only for random type signals , not sinus mathematically speaking, a ...

Why is frequency of graph differing?

hi - official answer this time the PSD concept is valid only for random type signals , not sinus mathematically speaking, a ...

3 hours ago | 0

Answered

Manual spectrogram creation without using spectrogram command

hello see below (myspecgram) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% data...

Manual spectrogram creation without using spectrogram command

hello see below (myspecgram) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% data...

18 hours ago | 0

Answered

modelfrf, experiment, naturel frequecies, magnitude

hello I plotted the time data for channels combos 3/4 (and 1/2) both shows single (low) frequency sinus type data - so this ...

modelfrf, experiment, naturel frequecies, magnitude

hello I plotted the time data for channels combos 3/4 (and 1/2) both shows single (low) frequency sinus type data - so this ...

19 hours ago | 0

| accepted

Answered

Trying to extract data from an assigned header

hello nothing fancy - but it works ! aa = readlines('data.xml') for ci = 2:numel(aa)-1 line = char(aa(ci)); ind...

Trying to extract data from an assigned header

hello nothing fancy - but it works ! aa = readlines('data.xml') for ci = 2:numel(aa)-1 line = char(aa(ci)); ind...

1 day ago | 0

Answered

Linear filter for echo effect

hello there is a very simple way to implement echo effects - see demo code below infile='DirectGuitar.wav'; outfile='out_ec...

Linear filter for echo effect

hello there is a very simple way to implement echo effects - see demo code below infile='DirectGuitar.wav'; outfile='out_ec...

1 day ago | 0

| accepted

Answered

generate multiple text files from a matrix

hello see below data = [(1:1000)' 1000+(1:1000)']; for ci = 1: size(data,1) str = ['(' num2str(data(ci,1)) ',' num2s...

generate multiple text files from a matrix

hello see below data = [(1:1000)' 1000+(1:1000)']; for ci = 1: size(data,1) str = ['(' num2str(data(ci,1)) ',' num2s...

4 days ago | 0

| accepted

Answered

How Do I Fitting a 3 Unknown Parameter Model?

hello Jordan see example below x = 0:100; N = length(x); tau = 10; % time scale of relaxation x_asym = 4; % relative inc...

How Do I Fitting a 3 Unknown Parameter Model?

hello Jordan see example below x = 0:100; N = length(x); tau = 10; % time scale of relaxation x_asym = 4; % relative inc...

4 days ago | 0

Answered

How can I plot multiple 2d plots with a z value that changes the value of each line?

hello Alessandro check this please n = 3; z = [1 2 0.25]'; z = sort(z,'ascend'); x = linspace(0,10); y = z*x; dat...

How can I plot multiple 2d plots with a z value that changes the value of each line?

hello Alessandro check this please n = 3; z = [1 2 0.25]'; z = sort(z,'ascend'); x = linspace(0,10); y = z*x; dat...

4 days ago | 0

| accepted

Answered

changing the name of multiple csv files in a folder

hello this is a first attempt I prefered to create the renamed copies in a separate folder also my code will probably need...

changing the name of multiple csv files in a folder

hello this is a first attempt I prefered to create the renamed copies in a separate folder also my code will probably need...

4 days ago | 0

| accepted

Answered

bar plot with color bar

hello see code example below all the best clc clear all close all data = [.142 .156 .191 .251 0.5 0.86 2.2 4 8.3]; un...

bar plot with color bar

hello see code example below all the best clc clear all close all data = [.142 .156 .191 .251 0.5 0.86 2.2 4 8.3]; un...

4 days ago | 0

| accepted

Answered

Specter of a square signal(10Khz) at 10MHz frequency

hello there is a much faster method to generate a square signal (using square ) see demo below for signal generation and fft...

Specter of a square signal(10Khz) at 10MHz frequency

hello there is a much faster method to generate a square signal (using square ) see demo below for signal generation and fft...

5 days ago | 0

| accepted

Answered

How to fix Index exceeds matrix dimensions error?

hello Philip I corrected some minor bugs in matlab function blocks also lambda_nom is not initialized so I took lambda_nom =...

How to fix Index exceeds matrix dimensions error?

hello Philip I corrected some minor bugs in matlab function blocks also lambda_nom is not initialized so I took lambda_nom =...

6 days ago | 0

Answered

Scaning a txt file

hello Carolina this code will scan the file and search for the targeted variables you can expand (add more variables) if you ...

Scaning a txt file

hello Carolina this code will scan the file and search for the targeted variables you can expand (add more variables) if you ...

6 days ago | 0

Answered

Edit Textfile for analysis

ok so my 2 cent suggestion to make that array looks nicer - lines = readlines('aba.txt','WhitespaceRule','trim'); ll_out ...

Edit Textfile for analysis

ok so my 2 cent suggestion to make that array looks nicer - lines = readlines('aba.txt','WhitespaceRule','trim'); ll_out ...

6 days ago | 1

Answered

Need Help about FFT and STFT

hello see the code below for (averaged) fft analysis and spectrogram you can easily incorporate a test to select samples tha...

Need Help about FFT and STFT

hello see the code below for (averaged) fft analysis and spectrogram you can easily incorporate a test to select samples tha...

6 days ago | 1

| accepted

Answered

read files and check if something is number

hello see the different options in code below my prefered one is the second a=readcell('test.txt',"Delimiter",":"); % % o...

read files and check if something is number

hello see the different options in code below my prefered one is the second a=readcell('test.txt',"Delimiter",":"); % % o...

6 days ago | 0

| accepted

Answered

Plotting a random walk step by step

hello IMHO, the problem comes that x and y are not reinitialized (put to zero) when you start the next walk so I changed thi...

Plotting a random walk step by step

hello IMHO, the problem comes that x and y are not reinitialized (put to zero) when you start the next walk so I changed thi...

6 days ago | 0

Answered

How to extract numbers from .dat file

hi again these are 3 options I tested for you ; i believe the second one is what you are looking for a=readcell('data.dat',"...

How to extract numbers from .dat file

hi again these are 3 options I tested for you ; i believe the second one is what you are looking for a=readcell('data.dat',"...

7 days ago | 0

Answered

How to compare two frequency time graphs?

hello see below , we are generating a signal with 2 frequencies , then do fft for showing their frequencies. the time plot w...

How to compare two frequency time graphs?

hello see below , we are generating a signal with 2 frequencies , then do fft for showing their frequencies. the time plot w...

7 days ago | 1

| accepted

Answered

How to denoise a response to step forcing?

hello I tried 2 simple methods : sliding window averaging : not very effective to fit an exp model : will almost give the ...

How to denoise a response to step forcing?

hello I tried 2 simple methods : sliding window averaging : not very effective to fit an exp model : will almost give the ...

7 days ago | 1

Answered

using for loop plotting problem help me

hello I assumed that you wanted to plot I and error , but you forgot to index thos variables see below : f= @(x) 3*x^5+7*s...

using for loop plotting problem help me

hello I assumed that you wanted to plot I and error , but you forgot to index thos variables see below : f= @(x) 3*x^5+7*s...

7 days ago | 0

| accepted

Answered

find the zero Value of a data

hello you use this function for detecting and ploting data crossing points threshold can be whatever value - not only zero ...

find the zero Value of a data

hello you use this function for detecting and ploting data crossing points threshold can be whatever value - not only zero ...

7 days ago | 0

Answered

Conditional statements on array.

hello Santos this is one way to do it split the input vector in 12 long extracts, then search for any value inside that is a...

Conditional statements on array.

hello Santos this is one way to do it split the input vector in 12 long extracts, then search for any value inside that is a...

7 days ago | 1

Answered

How do I import a column (f.e. C2:C37) of multiple Excel files into one vector in Matlab?

hello this is a simple code to load multiple excel (one sheet) data you can build your solution on this example file_list =...

How do I import a column (f.e. C2:C37) of multiple Excel files into one vector in Matlab?

hello this is a simple code to load multiple excel (one sheet) data you can build your solution on this example file_list =...

8 days ago | 0

Answered

attenuate part of the audio

hello Sofia here some example below : %% example 1 : fading out the last 1 second of the wav file [Y1,Fs]=audioread('demo....

attenuate part of the audio

hello Sofia here some example below : %% example 1 : fading out the last 1 second of the wav file [Y1,Fs]=audioread('demo....

8 days ago | 0

Answered

How can I obtain the right convergence number from what I have done so far??

hello this seems to work better - :) clc clear x = input('Enter the angle in radians: '); Count = 0; Estimate = inf; Pre...

How can I obtain the right convergence number from what I have done so far??

hello this seems to work better - :) clc clear x = input('Enter the angle in radians: '); Count = 0; Estimate = inf; Pre...

8 days ago | 0

| accepted

Answered

How to create matrix with other matrixes by joining them?

hello here you are no loops res = zeros(2,2*size(a,2)); res(1,1:2:2*size(a,2)) = a; res(1,2:2:2*size(a,2)) = b; res(2,1:...

How to create matrix with other matrixes by joining them?

hello here you are no loops res = zeros(2,2*size(a,2)); res(1,1:2:2*size(a,2)) = a; res(1,2:2:2*size(a,2)) = b; res(2,1:...

8 days ago | 1

Answered

Group data in specific potition (data redistribution)

hello back so I modified the code to respect empty sections - hope it helps ! % data1 = readcell('Input.xlsx'); data1 = ...

Group data in specific potition (data redistribution)

hello back so I modified the code to respect empty sections - hope it helps ! % data1 = readcell('Input.xlsx'); data1 = ...

8 days ago | 0

Answered

Group data in specific potition (data redistribution)

Hello Ivan see below I added a 3rd line in your input file (just copied the first line) so that the output I generate can be...

Group data in specific potition (data redistribution)

Hello Ivan see below I added a 3rd line in your input file (just copied the first line) so that the output I generate can be...

11 days ago | 0

Answered

How to choose the right time and frequency vectors?

hello see example below : the notch filter simu is a bonus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%...

How to choose the right time and frequency vectors?

hello see example below : the notch filter simu is a bonus %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%...

11 days ago | 0