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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 1

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

más de 4 años hace | 0

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

más de 4 años hace | 1

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 0

| aceptada

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

más de 4 años hace | 1

| aceptada

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

más de 4 años hace | 0

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

más de 4 años hace | 1

| aceptada

Cargar más