Respondida
How to read all mat files in folder and save plot as image
hello you can try / build your solution based on this example here I wanted all data being in one single plot so I concatenat...

alrededor de 4 años hace | 0

| aceptada

Respondida
model fit comparison matlab
hello this is basically waht is called the R² correlation coefficient . If it get's close to 1 it's a good fit, if it get's cl...

alrededor de 4 años hace | 0

Respondida
How to replicate this graph with random peaks?
hello see little demo below , based on random data (up to you to specify x, y centers , sigmas and z amplitudes ) here I gen...

alrededor de 4 años hace | 0

Respondida
Import Labview Text file with lines of text above a two column data set
hello there are 10 header lines in your file (attached for double check) code is simply : >> data = readmatrix('Data.txt',...

alrededor de 4 años hace | 0

Respondida
plotting 3 figures in a single figure when they are in loop
hello see my suggestion below (based on dummy data as you don't supply any file) notice that to compute the velocity and acc...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to sum of loop elements?
hello I opted for a bar graph of the summed data I changed the Y scale to log otherwise you could not see the tiny values as...

alrededor de 4 años hace | 0

Respondida
Move all statements after the function definition to before the first local function definition
hello put all functions at the end , after the main code this works now : clear all; close all; clc; % calculate alpha m ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Data analysis from measurements (PRBS injected to a system -> how to plot the bode of the system response)
hello see my suggestion below (data in attachement) clc clearvars data = load('beam_experiment.mat'); x = transpose(data...

alrededor de 4 años hace | 1

| aceptada

Respondida
How to convert to nan
hello try this FF= [1 2 3 4 5; 6 7 8 9 10; 11 12 13 14 15]; [i,j] = find(FF > 0 & FF < 10); FF(i,j) = NaN;

alrededor de 4 años hace | 0

Respondida
How is frequency response calculated as function of sample data frequency?
hello so h is a FIR filter see code below for Bode plot and time domain simulation on sine wave at 30 and 25 Hz (the notch f...

alrededor de 4 años hace | 0

Respondida
Drift in cumtrapz forceplate data
hello yet another example of accelerometer / signal integration drift using cumtrapz. I see you removed the mean value of th...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to find the index of the first absolute minimum entry of a matrix
hello here you are my friend A=[5,7,0.5,5 ; 2,0.5,4,1 ; 0.5,6,7,9] [val,ind_linear] = min(A,[],'all','linear'); % M = ...

alrededor de 4 años hace | 0

Respondida
Summation with for LOOP
hello a simple add on to your code : clear clc x = linspace(0,50,1000); v = 10; a = 0.2254; b = 0.5401; xT = 0; ysum =...

alrededor de 4 años hace | 0

| aceptada

Respondida
change marker color based on the values
hello my suggestions below S = 35; % size of symbols in pixels % normalize vector to go from zero to 1 normV = (B(:,3)-m...

alrededor de 4 años hace | 0

| aceptada

Respondida
How to FFT my xlsx files from time domain to frequency domain?
hello see my demo below now your signals look like a bunch of spikes so I wonder what you expect from the fft analysis ? c...

alrededor de 4 años hace | 0

Respondida
How to make the postions of each circle random?
hello maybe this ? - as far as I understand you simply want to generate random center position for the circles ? % Set the r...

alrededor de 4 años hace | 0

| aceptada

Respondida
How do i count the signal within a certain time interval?
hello below a demo code that look for crossing point between a chirp signal. We detect both the positive and negative slope cr...

alrededor de 4 años hace | 0

Respondida
Calculate peak of pulses above certain threshold
hello @Chunru : why the envelop ? this can create enough signal distorsion so that the peak instant is misread. I understand ...

alrededor de 4 años hace | 0

| aceptada

Respondida
Find the max width of a peak
hello Nigel maybe there is some way to make findpeaks compute the prominence in a manner that better works on this example , b...

alrededor de 4 años hace | 0

Respondida
How to extract time period of sensor signals
hello see my demo below - for constant and non constant frequency signals. the last plot shows the time diffeence between the ...

alrededor de 4 años hace | 0

Respondida
table import in more columns
hello maybe this will help you to get your data as you want : load('ModellDDOKLL2table.mat') C = table2array(ModellDDOKLL2t...

alrededor de 4 años hace | 0

| aceptada

Respondida
User input compared with excel sheet data and returns best fit
hello was a nice recreation task.... here a small demo (the excel file is attached) % Import the data data = readcell("CARS....

alrededor de 4 años hace | 0

| aceptada

Respondida
Curve fitting for jonscher power law
hello my suggestion - and because I don't have the Curve Fitting Tbx, simply with fminsearch i prefered to look at the data i...

alrededor de 4 años hace | 1

Respondida
I keep getting undefined input error
hello you want to request a string not a number , so the correct code is : Grade = input('Enter letter grade for course: ',"...

alrededor de 4 años hace | 1

Respondida
Estimation of Pitch from Speech Signals Using Autocorrelation Algorithm
hello this is a modified version of the code . The autocorrelation ouput will have a major peak at sample = M (x axis) and is ...

alrededor de 4 años hace | 0

Respondida
How can I create a for loop using simulated data for the start of frequency analysis?
hello see code correction below ; there is only one for loop as we add the new signals on the 60 Hz + noise signal created bef...

alrededor de 4 años hace | 0

Respondida
How To Approximate Data With Model
hello maybe this ? clc clearvars realdata=readmatrix('RATM.csv'); Year=realdata(:,1); realgA=realdata(:,2); TFPmodel...

alrededor de 4 años hace | 0

| aceptada

Respondida
Content and rate of change in a buffer
hello IMHO, the non uniform x spacing is prone to bug - so I prefered to resample the data with constant x spacing . Now I w...

alrededor de 4 años hace | 0

Respondida
How to use readtable when skipping every second (non-data) line?
hello try this T = readtable ('samplefile.txt', 'NumHeaderLines', 8,"Delimiter",' '); [m,n] = size(T); select_rows = 1...

alrededor de 4 años hace | 0

Respondida
how to obtain the impulse response of halfband FIR filter
hello by definition H1 array is your impulse response (a FIR filter coefficients array is its impulse response) clc; close...

alrededor de 4 años hace | 0

Cargar más