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

casi 4 años hace | 0

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

casi 4 años hace | 0

| aceptada

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

casi 4 años hace | 0

| aceptada

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

casi 4 años hace | 1

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

casi 4 años hace | 0

| aceptada

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

casi 4 años hace | 1

| aceptada

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

casi 4 años hace | 1

| aceptada

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

casi 4 años hace | 0

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

casi 4 años hace | 0

| aceptada

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

casi 4 años hace | 0

Respondida
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');...

casi 4 años hace | 1

| aceptada

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

casi 4 años hace | 0

| aceptada

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

casi 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 1

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 1

| aceptada

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

alrededor de 4 años hace | 1

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

alrededor de 4 años hace | 1

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

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

alrededor de 4 años hace | 1

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

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

alrededor de 4 años hace | 0

| aceptada

Cargar más