Réponse apportée
How to find the peak values from simulink file(.slx) in matlab coding. I'm getting pks = 0×1 empty double column vector, locs = 0×1 empty double column vector errors.
hello again so this is the improved version of my code I also rounded the peak values numbers displayed in the plot load('...

plus de 4 ans il y a | 0

Réponse apportée
Fit the sawtooth wave with sin/cos harmonic
hello try this clc clearvars f_sig = 10; % signal freq periods = 5; % periods duration = periods*(1/f_sig); fs = 20...

plus de 4 ans il y a | 0

Réponse apportée
Loading multiple data folders and call them in a For Loop
hello see example below for excel files - simply adapt the inner code to read your data and file extension also you need to l...

plus de 4 ans il y a | 1

Réponse apportée
How to get the settling time of the plot
hello with stepinfo, you have access to all the info's : A =[0 1;-30 -1.2]; B =[0;30]; C=[1 0]; G=ss(A,B,C,[]); stepinfo...

plus de 4 ans il y a | 0

Réponse apportée
Getting a perfect ifft for an input time series
hello the output spectrum must be augmented from single sided to double sided fft (make a symetrical of it and concatenate bot...

plus de 4 ans il y a | 1

Réponse apportée
How to obtain the response to a time varying linear filter with the input being a white noise
hello simply make the coefficients update inside the for loop example below of IIR order 2 code with fixed value coefficient...

plus de 4 ans il y a | 0

Réponse apportée
I want to draw 2 moving points in a graph. Please help with the easiest code as I m just a beginner.I tried with x(i), y(i) but only 1 moving point I could get. Please help
hello try this N = 300; z=linspace(0,10*pi,N); t=1:N; x=3*cos(0.01*(t-z)).*cos(t-5*z); %// initiallize plot. Get a han...

plus de 4 ans il y a | 0

Réponse apportée
Gussian Curvature calculation problem
hello your function do work if your input data is 2D arrays and not vectors as you did also remove the comma at the end of th...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
how to separate an audio file based on different speakers
hello this is ùy suggestion : assuming we have a wav file, I take the absolute of the signal and smooth it to get a kind of en...

plus de 4 ans il y a | 0

Réponse apportée
how can I plot a peritrochoid curve?
hello according to the equations given here , the coding is quite simple : Epitrochoid - Wikipedia % The epitrochoid with...

plus de 4 ans il y a | 0

Réponse apportée
How to add gray to out of range in the colormap?
coming too late in the show .... hello my 2 cents suggestion : % dummy data N = 25; Z = peaks(N); Z = Z*5+35; ZZ = Z...

plus de 4 ans il y a | 0

Réponse apportée
Multiple Colors in Bar Graph
hello see example below clc clear all close all data_co2 = [.142 .156 .191 .251 0.5 0.86 2.2 4 8.3]; data_gdp = rand(s...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to find the peak values from simulink file(.slx) in matlab coding. I'm getting pks = 0×1 empty double column vector, locs = 0×1 empty double column vector errors.
hello so the issue is to plot the max of your data (once taken the absoute value of it) . In this case findpeaks is overkill,...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Save a .dat file containing words and values
hello code modified for my testing purposes... % case_path='H:\Desktop\Samples\CASES\'; case_path=pwd; Samples=load(['Cases...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How can I use importdata to import .csv files in a specific folder?
hello Valeria this little code will open and read all csv files , once sorted by natural naming (load the requested function ...

plus de 4 ans il y a | 0

Réponse apportée
regexp to extract the last underscore and the following letter (last letter) from words
hello I recognize I am not the regexp expert here , so I would suggest this alternative : ind = findstr(words,'_'); word_out...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can I increase the size of the color bar values?
hello I believe you want to have larger font for a better reading simply create a handle associated with the colorbar and the...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can I interpolate or spline a dataset into a curve?
hello this would be my suggestion clc clearvars %% load(''); load('Data1.mat') x = Data1(:,1); y = Data1(:,2); cen...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to calculate the synchronization error using signal time shifting
Hello this is a code that will do the time shifting and sigma computation for a time shift of - 10 to + 10 samples seems the...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
How to read certain data within a text file.
hello Ivan this is my suggestion dades 51 : there are 4 problems in this case and the code will ouput cell arrays of size 4...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Convert pulses into sine. Simulink
hello to convert PWM back to the input sinus , you simply have to put a low pass filter after the PWM signal you can use a se...

plus de 4 ans il y a | 0

Réponse apportée
Can I remove the noise and make the graph smooth?
hello see the demo below - it removes the drift in your data , so it will remain "zero mean" after high pass filtering as a b...

plus de 4 ans il y a | 0

Réponse apportée
Change scale of x-axis on plot
hello Megan you have to create a specific XTick / XTickLabel to represent the number the way you prefer here an example wit...

plus de 4 ans il y a | 0

Réponse apportée
Why do upsample and downsample commands give wrong results in start of sequence?
hello Iprefered somehow to create an explicit x axis for each data now I think the plot is better because evrything is align...

plus de 4 ans il y a | 0

Réponse apportée
Why do i get an error using the spectrogram function??
hello FYI , this is my tool to analyse data your signal looks like a bunch of spike . As we all know , a dirac pulse will ha...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How can I use cubic spline to smooth data and sketch graphs.
hello example of smoothing done on L1 data - FYI - clc clearvars T = readtable('Feb 2020_Elv 50+.csv'); [samples,col] =...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to find a specific point on a plot and connect it with other points?
hello to make it work , you have to remove the NaN content of your data clc clearvars close all Z = readtable('Abb12.xl...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to process raw signal data (Wav) before using it for classification by deep learning.
hello I tried the first mat file - yes you can do STFT (here called a spectrogram) the sampling rate is not defined in your ...

plus de 4 ans il y a | 1

| A accepté

Réponse apportée
FFT from CSV data files
hello your csv file looks more like a xls file - csvread does not work on this one so I went for xlsread had also to change ...

plus de 4 ans il y a | 0

Réponse apportée
Drawing a hyperboloid with polar coordinates
hello you have to start from z and then compute r and not vice versa also square root function is sqrt and not square z = l...

plus de 4 ans il y a | 1

| A accepté

Charger plus