Réponse apportée
Signal smoothing for logarithmic timescale
hello you can smooth data even in log spacing a demo code is provided below. I kept the amount of samples low , so the smooth...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to use bandpass filter.
Hello no bugs or special issues , but minor improvements I prefer to use the IIR filters (like butter) used with filtfilt ...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
CASE CLOSED. THANKS YOU
hello Nabil the code below implements low and high pass filtering hope it helps T = readtable('Book1.xlsx'); time = ...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Extrapolation: How do I extrapolate a curve with minimum error.
hello my suggestion for exponential curve fitting and extrapolation (adjust the new time vector t2 according to your needs) ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Resultant of two files
hello again in the mean time I have worked for you ... this is a code to load the data for all sections (variables) you get th...

environ 5 ans il y a | 0

Réponse apportée
replace cell content of excel from matlab script
hello this is my suggestion - convert your data (numeric double) to cell array first and more robust if statement as numeric...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
repeating step signal in real time with a hold value of 5 seconds
hello my 2 cents suggestion... adapt sampling frequency to your own needs Fs = 100; dt = 1/Fs; duration = 5 ; nb_steps = 1...

environ 5 ans il y a | 0

Réponse apportée
How do I obtain the aligned sequence using distance warping
hello my suggestion below : % Example 3: % Align handwriting samples along the x-axis. load blockletterex %dtw(MATLAB1...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
how can i animate the line using for loop and if statement
hello you can do much simpler , as x and y are fully defined in the initialization section , then you only have to loop - four...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
I'm calculating the harmonics of a time series. How do I determine the significance of the harmonic fit onto the data?
hello why not simply compute the mean squared error between your fitted data and the input data I also tried including the se...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Find the difference between signal values
hello if you export the data to matlab array you can use this code; it has the benefit to use linear interpolation between sam...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
I need to measure the delay between each peak of two signals.
hello I tried with another peak finder code , as I am not really convinced by findpeaks here the code and the result; it's ki...

environ 5 ans il y a | 0

Réponse apportée
Cell array for indexing
hello your assigning a vector to new_signal{k} so I believe your intention was : new_signal{k}=a(new_positions(x):new_posit...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Phase shift of two sine curves
hello Bruce the code you posted is lacking probably the section that load the data ; I could not really reproduce your plot. ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Mean of values before and after a specific element
hello see code below : clc clearvars % dummy data x = 1:1:400; y = 1500 + 50*rand(1,400); y(40)=35; % first outlier (si...

environ 5 ans il y a | 1

Réponse apportée
How to get positive and negative area under the curve separately in simulink ?
hello see on FEX : climanomaly - File Exchange - MATLAB Central (mathworks.com) save your simulink data as array to the wor...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
I want to know how I can apply filter to my signal which I have plotted from a graph
hello I wanted to look at the spectral content of your data - so I use my "all in one" code for spectral analysis. see the r...

environ 5 ans il y a | 0

Réponse apportée
modify a data file using MATLAB?
so this is it ! hope it helps see the attached file too - you will need them to have the folders sorted in natural order , w...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Creating a vector made of three different unit vectors
hello Alexandra see demo code below ; the matrixes P and R have size 3 x 3 x 6349 (iterations are in 3rd index) % A = [Ix, ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to filter noise from a time series without losing important informations?
hello this is my suggestion and the result : as you can see , the large amplitude spikes are not changed by the filtering (per...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
How to read multiple wave files into Matlab with "Audioread" processing and plotting
hello simple demo code : clearvars % A simpler, neater, more efficient solution is to use the structure returned by DIR: %...

environ 5 ans il y a | 0

Réponse apportée
how can I write this exponential function and plot it in matlab?
hello don't forget to define x if you want an output : x = linspace(0,0.005,500); y=(-14)*exp(-1500*x )+26*exp(-20000*x); ...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Retrieve cell of matrices from text file
hello my suggestion : C is same as X now X{1} = rand(10,10); writecell(X,"textfile"); C{1} = reshape(cell2mat(readcell...

environ 5 ans il y a | 0

Réponse apportée
freqeuncy complex data convert to FIR filter
hello here you are my friend ! tried to fit minimum size IIR filter first , then FIR coefficients are equal to impulse res...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Read in 150+ space delimited .csv files as matrices and perform the same operation on all of them
hello the first topic is the loop to open all csv file automatically , if you prefer your own specific code instead of csvim...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
define function to data set
hello here you are my friend result : code : clearvars load x1.txt , load x2.txt , load y1.txt , load y2.txt % m...

environ 5 ans il y a | 0

Réponse apportée
Cascade filters and amplify
Here you are my friend the demo is done on a second order bandpass Butterworth filter ; you ca simply increase the order to ma...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
how to design a high-pass IIR filter having the transfer funciton ?
Here you are my friend I don't know what sequence was supposed to be filtered , so the demo is on random signal % IIr filter...

environ 5 ans il y a | 0

| A accepté

Réponse apportée
Sampling and resampling data of different lengths
hello Alexandra this was a good gym exercise for me today. had to spend first time to understand which variables belong to whic...

environ 5 ans il y a | 1

| A accepté

Réponse apportée
Transform fft phase to write audio
hello take the real part after you do the ifft : x_new = real(ifft(Xf_new));

environ 5 ans il y a | 0

| A accepté

Charger plus