Answered
How do I evaluate the error for a fitted non-linear curve
hello using both experimental and fitted data you can compute R2 this way : function Rsquared = my_Rsquared_coeff(data,data...

4 years ago | 0

Answered
How to calculate average for a multiple of time period
here your are , my friend the frequency is estimated by taking the fft of the velocity signal and getting the dominant peak. b...

4 years ago | 0

| accepted

Answered
How can I find where those indesirabe plots are from ?
hello maybe this ? %% Ids(Vds) %% mu=10; Cox=3.9; W=360*(10^(-9)); L=180*(10^(-6)); K=(mu*Cox)*(W/L); Vth=1; vds=0...

4 years ago | 0

| accepted

Answered
how to extract coordinates from g code files
hello tried a few things , this is my suggestion for the time being . Not 100% sure it's the best code , maybe someone else wi...

4 years ago | 1

Answered
Impedance calculation using FFT from time, voltage and current battery data
hello should be possible using tfestimate function alternative (older) code : x and y are your time domain data (x = inpu...

4 years ago | 0

| accepted

Answered
How can I convert an .xls spreadsheet to FFT format?
hello try this code . It will do averaged FFT (with overlap) and time / frequency spectrogram a few mods need still to be do...

4 years ago | 1

| accepted

Answered
Error in using eval with num2str
hello your method works only for integers otherwise you have to round your numbers with a given number of decimals befoe it h...

4 years ago | 1

| accepted

Answered
How to get xticklabels from xticks by merging cells?
hello here you are my friend : Xticks = [1,2,3]; tmp = num2str(Xticks); Xtickslabels{1} = tmp;

4 years ago | 0

Answered
Divide and plot signal parts
finally, decided to give it a try .... your neg data in red (added for fun the positive segments as well in green) %% dum...

4 years ago | 0

| accepted

Answered
Audios doesn't looping right
hello I a not sure what you mean by "download " audio files I interpreted your post as simply looping over a folder and stor...

4 years ago | 0

Answered
Trying to identify certain peaks in a plot
hello I have reworked your code check this : %% Plot of Undamaged Specimen % na=readmatrix('Default Dataset (4).csv');...

4 years ago | 1

| accepted

Answered
changing frequency of an existing audio
hello the question is not 100 % clear to me if you want to play the same signal to a different pitch , you can simply do ne...

4 years ago | 0

| accepted

Answered
fourier Transformation of the signal from a motor
hello this is my suggestion for your application (the fft is done one multiple data chuncks of NFFT length with overlapping , ...

4 years ago | 0

| accepted

Answered
How to cut data after defined number of peaks?
hello Hannah here you are - blue start / end points defined by your preferred peakseek function NB : the blue points are not a...

4 years ago | 0

| accepted

Answered
Question about using the "fit_mutiple_gaussians" from File Exchange
here the code a bit simplified but the results with a 4 gaussian model does not really fit well. I think this come mostly from...

4 years ago | 0

| accepted

Answered
How can I find the angle (from the vertical) between two points?
hello jeremy small typo in your code the angle is given by : atand((x1-x2)/(y1-y2)) and not atand((x1-x2)-(y1-y2)) so...

4 years ago | 0

Answered
filtering data inside a table and storing multiple tables in one big table
hello you can probably make the all process much simpler with only one main for loop (iteration over the files) and one if con...

4 years ago | 0

| accepted

Answered
getting the index after comparing two logicals
hello see code below : a = logical([1 0 0 0 1]) b = logical([0 0 0 0 1]) c = a & b col_c_is_one = find(c) gives the fol...

4 years ago | 0

Answered
How to plot these types of plot?
hello see my demo below. Change the profile and data scaling accorsing to your needs hope it helps figure(3) plot : code ...

4 years ago | 0

| accepted

Answered
Interpolating(or averaging) Time series curves
hello in your case it's fairly simple as both blue and red curves have exactly the same y values (but for different x) so yo...

4 years ago | 1

| accepted

Answered
signal processing of real time signal
hello again !! FYI this is simple code for time domain acceleration to velocity / displacement integration (data file attached)...

4 years ago | 0

| accepted

Answered
Assign custom interval to the color map z axis of a surf plot
hello try my little demo the colorbar is "frozen" so that ticks / tickslabels do not vary acccording to data range. In other...

4 years ago | 0

| accepted

Answered
How to filter breath noise in audio?
hello i opted for a strategy based on the spectrogram content. I noticed that the "breathing" sections are characterized by a ...

4 years ago | 1

| accepted

Answered
How to plot it?
hello simply replace the negative values of b by NaN so the vector size remains the same a=[1;2;3;4;5]; b= [-10;10;0;20;-20]...

4 years ago | 1

Answered
Count impulses into sequence of impulses and segments of sequences of impulses from signal
hello again so this is my attempt... not maybe the shortest and most efficienct code , but seems to do what I wanted so we ca...

4 years ago | 1

| accepted

Answered
How I could solve the for loop problem?
hello tried to fix quite a large amount of bugs still don't understand why you need a second for loop as obviously it could ...

4 years ago | 0

| accepted

Answered
How to create structs with text data
hello check my demo code below : clc clearvars mylines = readlines('exampledata.txt'); % [m,n] = size(mylines); % gr...

4 years ago | 0

Answered
I need to read a specific column from 30 files in a folder (read the same column from each of them) and plot each column as a line. How can I go about it?
hello Agustina see code below : % use the structure returned by DIR: P = cd; % working directory S = dir(fullfile(P, 'Powe...

4 years ago | 1

| accepted

Answered
Create a better plot
hello maybe you want to make an animated line demo : %% create animatedline object / handle figure h1 = animatedline; ...

4 years ago | 0

| accepted

Answered
how to calculate fast Fourier transform with a 128-point window on these data with non-uniform sampling frequency
hello see my suggestion below the result is in Area clc clearvars load('DATA3.mat'); t3 = data3(:,1); %% uniform re...

4 years ago | 0

| accepted

Load more