Answered
Sampling and resampling data of different lengths
hello Alexandra this was a good gym exercise for me today. had to spend first time to understand which variables belong to whic...

5 years ago | 1

| accepted

Answered
Transform fft phase to write audio
hello take the real part after you do the ifft : x_new = real(ifft(Xf_new));

5 years ago | 0

| accepted

Answered
Adding a counter to a loop
hello IMHO, the initialisation of the counters should be done BEFORE the first for loop CountWintW=0; CountWintE=0;...

5 years ago | 0

| accepted

Answered
SPEED CONTROL OF DC MOTOR USING PID
hello Giuseppe I don't understand why you say : the input is:v(s)+Td*(Ls+R/K), where does that comes from ?? I double checke...

5 years ago | 0

| accepted

Answered
How do I FFT a portion of an audio signal using window size 8000.
hello see demo code below, adapt it to your own needs clc clearvars %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%...

5 years ago | 1

| accepted

Answered
FRF Issue of 4 DOF Frame
hello again so this is the code a bit reworked and expanded the "interesting" portion in the FRF plot is in the sub Hertz ran...

5 years ago | 0

| accepted

Answered
sine curve fitting by recursive method
hello this is a little demo you can adapt to your own needs ... clc clearvars close all % dummy signal (sinus + noise)...

5 years ago | 0

| accepted

Answered
How read a txt file from a microphone acquisition and plot a FRF in Matlab ?
hello Giancula this is how I interpreted your request hope it helps output : data = readmatrix('run1.txt'); freq =...

5 years ago | 0

Answered
Filter noise from .wav using FIR or IIR digital filters or FFT filtering method
hello see my demo code below for fft analysis and Butterworth filters adpt it to your own needs hope it helps clc clear ...

5 years ago | 3

| accepted

Answered
How to plot the frequency spectrum graph in high-pass filter Blackman windowing method?
hello my code suggestion for audio file analysis : clc clear all %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%...

5 years ago | 0

Answered
Is it possible to calculate time constant and DC gain for RC circuit
hello a simple RC circuit like the one shown above has tau = RC and DC gain =1 (assuming Vout = voltage accross C and ...

5 years ago | 0

Answered
how to create copies of chirp signal?
hello i modified a bit your code and expanded it hope it helps t1=1; f0=0; f1=100; samples = 1000; dt = 1e-3; t=(0:sam...

5 years ago | 0

| accepted

Answered
Scanning signal/Storing anything other then zeros
hello my suggestion / demo code : I understand the output must be a matrix of 3 columns; tol = eps; % set a tolerance value...

5 years ago | 0

| accepted

Answered
Subtract 1 from variable each second
hi nothing fancy counter = 100; while true do_something=true; counter = counter -1; % decrement counter pause...

5 years ago | 0

Answered
How to plot this figure?
hu try this and adapt to your own needs a = rand(300,3); figure,imagesc(a);colormap('jet');colorbar

5 years ago | 0

| accepted

Answered
Noisy plot after deviation (no sensor)
hello my suggestion, with some smoothing at all stages : z_irl = readmatrix('z_irl_data.txt'); z_irls = smoothdata(z_irl,'g...

5 years ago | 0

| accepted

Answered
Trying to find out that how many loop cycle it complete before the 'S' become zero. S value is not decreasing. Need to decrease S value zero and sum the total cycle number?
hello again so I made 2 modifications initialized F with 0 (my guess) changed the while tolerance limit because otherwise i...

5 years ago | 0

Answered
in my program, i retrieve .csv data using load, but why is there an error when retrieving the data? . anyone can help me?
hello again it worked fine with readtable , here I simply plot the first variable of the table and it's min value T = readtab...

5 years ago | 0

Answered
Plotting acceleration vs time on Matlab from accelerometer data that doesn't have a time column
hello as we know the sampling rate Fs and the amount of samples , there is no big difficulty to reconstruct a time vector : ...

5 years ago | 0

Answered
How to draw a line of best fit on filtered discrete data sets
I used this simple example and created a gap in the data (not NaN's) there is no problem to use polyfit in that situation ...

5 years ago | 0

| accepted

Answered
Deriving an average loop waveform from multiple loops
So finally after some attempts and headaches , a positive result emerged this is it and the code that generated it - there i...

5 years ago | 0

| accepted

Answered
How to find a frequency of a chirp signal at each sampling point
hello this code will plot the period (and from there the frequency) between two consecutive "zero crssing" points see second...

5 years ago | 0

| accepted

Answered
Fitting Gaussian keeping max amplitude same
hello robust smoothing can help you see code below clc clearvars %--- Example #1: smooth a curve / narrow peaks remov...

5 years ago | 1

Answered
Filter amplitude data as a function of time, calculating the time difference
hello Ignacio see figure(2) results result is displayed in command window : time distance dt = 440.9509 s at threshold val...

5 years ago | 0

Answered
Plotting data from a matrix: Showing shaded area on graph
hello Isabella this is my suggestion and how it looks as a plot you may have to tweka the labels / titles etc ... hope it h...

5 years ago | 0

| accepted

Answered
Color gradient for graph in a for loop
hello this would be my suggestion , gray dark to light for one curve I wonder if you overlay 3 curves at each iteration if it...

5 years ago | 0

| accepted

Answered
bar plot with different color bars depending on height
hello Giannis see code below and ouput here : clc clearvars x = [1:10]; y= [13, 25, 34, 65, 78, 92, 54, 46, 39, 5]; ...

5 years ago | 0

| accepted

Answered
concatenate repeating digit to the end of a column in numeric matrix
hello so my 2 cents suggestion, build on @DGM input (tx to him ! ) it just needed an additionnal correction term to be perfec...

5 years ago | 0

| accepted

Answered
how can I concatenate [aa,bb]?
hello I believe there are a frew mistakes as aa and bb are not indexed in the for loops , so you have a scalar that will be ov...

5 years ago | 0

| accepted

Answered
How to draw such plot
helllo simply like this (one curve demo) % 3 storey plot x = [ 1 1 2 2 3 3]; y = [5000 4000 4000 3000 3000 2000]; p...

5 years ago | 0

Load more