Answered
Improving fit of data to sum of cosines model
hello some findings that may interest you ... as I don't have the Curve Fitting Toolbox , this work has been done with the p...

circa un mese ago | 1

| accepted

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...

circa un mese 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...

circa un mese 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...

circa un mese 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...

circa un mese 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...

circa un mese 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...

circa un mese 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...

circa un mese ago | 0

| 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;

circa un mese 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...

circa un mese 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...

circa un mese 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');...

circa un mese 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...

circa 2 mesi 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 , ...

circa 2 mesi 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...

3 mesi 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...

3 mesi 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...

3 mesi 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...

3 mesi 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...

3 mesi 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 ...

3 mesi 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...

3 mesi 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)...

3 mesi 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...

3 mesi ago | 0

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 ...

3 mesi 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]...

3 mesi 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...

3 mesi 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 ...

3 mesi 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...

3 mesi 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...

3 mesi 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; ...

3 mesi ago | 0

| accepted

Load more