Comparing curves to an original signal
hello again so the yellow curve can be shifted to match the purple one by using a linear equation like y2_shifted = = y2*a+...

1 month ago | 0

How to get polynomial equation of polyfit?
hello my suggestion below : the equation is given by the string eqn code : clc; clear; y = [4.0432,4.1073,4.0899,4....

1 month ago | 1

| accepted

How can I find the Transfer Function having Magnitude(dB), Phase(degree) and Frequency(Hz)?
hello I tried a few options , IIR or FIR filters fit. As the phase plot shows , there is a quite significant phase roll rate...

1 month ago | 1

| accepted

Perform cross co-relation to find best fit
hello the two signals have a slightly (but constant) slopes , so the best estimation of time delta is measured at half the amp...

1 month ago | 0

Creating events from continuous data
hello I took only the central portion of your code and applied my recipe - see below had to do some preliminary data process...

1 month ago | 0

How to generate barplot like this on a given data?
hello example of horizontal bar plot clc clearvars close all data_co2 = [.142 .156 .191 .251 0.5 0.86 2.2 4 8.3]; data...

1 month ago | 0

How to write a function that implements an LTI filter using Direct Form 2?
hello see my example below %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % load signal %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% data ...

1 month ago | 0

Filtering noise from an audio signal
hello my recommendation : define the filters after you have analysed the data (see the spectrogram plot : most of the noise en...

1 month ago | 0

Access data from table element
hello Giulia try this clc clearvars s = dir('00*.txt') numfiles = numel(s); for n=1:numfiles filename = s(n).nam...

1 month ago | 0

Not sure whats wrong with the values in this plot
hello Seb I revisited your code and found the main bug . In your equations the term that computes the rotor acceleration ( = n...

1 month ago | 2

| accepted

i have a code for a .wav file which then outputs 3 graphs, but now i want to edit the code and apply three filters (LPF,HPF,BPF) how can i do that and also output the TF?
hello again this is the code with the FIR filters implemented hope it helps ! % LPF cutoff frequency 3 KHz % BPF cutof...

1 month ago | 0

| accepted

Intersection between fittetfunction and line
hello Luis so this my little demo for intersection - the crossing point coordinates are obtained by linear interpolation, so t...

1 month ago | 1

| accepted

Filtering out noise or eigenfrequency in acceleration data
hello Lisa do not be desperate ! we are here to help I used your data in my favourite code for noise and vibration analysis....

1 month ago | 0

| accepted

How to export .mat file to excel different sheets
hello yes , like this : MAT = rand(10,100); [m,n] = size(MAT); for ci = 1:n xlswrite('sampleData.xlsx', MAT(:,ci),...

1 month ago | 0

| accepted

How to perform calc. on the selected part of curve and then reassemble it with rest part of curve in MATLAB?
hello see my little demo below I extracted the portion of data of interest - you can do computation or smoothing and put bac...

1 month ago | 1

| accepted

Unsure of what is happening in for loop
hello I don't get why the while loop is for ? The for loop by itself will generate this result delta1 = -0.7151 -...

1 month ago | 0

| accepted

Using a filter difference equation in a for loop to filter a .wav file within the loop
hello see example below - notice b are usually coeffcient names for numerator so they are used for the x (input) , wheras a co...

1 month ago | 0

Help fixing code to do loop aswell as how to show start/end times of spike as seen on plot.
hello Erick I have implemented a new portion of code to define the two crossing points with maximal time accuracy (by linear i...

1 month ago | 0

SELECTING MATRIX ELEMENTS IN DESCENDING ORDER
hello try this r = row index c = col index [value,ind] = sort(A(:),1,'descend'); [r,c] = ind2sub(size(A),ind)

1 month ago | 1

Generating an average curve from 1,000 replicates of an ODE
hello I tweaked a bit your code. Your results can be stored in cells but as your y array has always the same dimensions, I fou...

1 month ago | 0

| accepted

Plot line colors and legend colors don't match, & error bars don't show the points in the plot
hello again my friend ! this is your code a bit tweaked h1 = plot(x*100, avey1, '-ok',... : forcing the line color to b...

1 month ago | 0

| accepted

Export Audio with Volume Automation
hello Hans this is my suggestion fs = 44100; dt=1/fs; t = 0:dt:2; phi = 0; A = 1; f = 220.0000; x = A*sin((2*pi*f*t) ...

1 month ago | 1

| accepted

How can i perform the for loop in this case?
hello not sure to have 100% understood the question but maybe this answer it ? I,believe it's simply about reshaping data -...

1 month ago | 0

How to transform a vector that have "*" to indicate that a number is repeated
hello my suggestion : A='3*2 1 5*10'; As = split(A); out_all = []; for ci = 1:numel(As) B = split(As{ci},'*'); ...

1 month ago | 0

| accepted

Spline interpolation of input data
hello check this not even sure the spline option is really needed here . A basic linear interpolation is good for the job ...

1 month ago | 0

| accepted

hello again I think I already answred that question in your other post so again here - slightly modified as the input data fi...

1 month ago | 0

| accepted

mean first 10 lines and next 10 line till finish array
hello try this %% dummy data data = rand(210338,3); % data must be column oriented (number of rows = number of samples) bu...

1 month ago | 2

| accepted

I have a problem with indexing in nested for loop.
hello my suggestion motion_data = csvread("hip_test_6d.csv",1,1); hip_6d = motion_data(:,1:6); femur_6d = motion_data(:,7:...

1 month ago | 1