Réponse apportée
merge three barh (stacked)
hello Rachele try this ! you get now one figure (plot) per variable , 20 in total) all the best t = readcell('Cartel2.x...

environ 4 ans il y a | 1

Réponse apportée
Plot cell data from for loop
hello maybe this ? I replaced the " mean(vertcat(y{:,r,m,ind}),1) " by a simple random number clc clearvars outLoop...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to generate random broadband vibration signal for certain frequency range ?
hello here you are my friend ! Fs = 500; % sampling rate duration = 10; % seconds rms_amplitude = 0.4; samples = Fs*du...

environ 4 ans il y a | 0

Réponse apportée
Area under a peak
hello based on @Davide Masiello excellent proposition, I tried to make the selection of the peak zone a bit more automatic... ...

environ 4 ans il y a | 2

Réponse apportée
Sawtooth that has 2 different times
hello here is the correct answer : T = 25e-3; % signal duration = 25 ms amplitude = 0.4; fs = 10000; % ts = 0.1 ms t = ...

environ 4 ans il y a | 0

Réponse apportée
find the minmum value in each column of a matrix
hello try this : d=[ 0 10.1164 0 0 0; 11.4474 0 0 ...

environ 4 ans il y a | 0

Réponse apportée
Cannot perform FFT on a signal imported from Simulink
hello again the issue was that the signal start with a NaN value removing this first sample would solve all your issue. maybe...

environ 4 ans il y a | 0

Réponse apportée
Automatic Signal denoising and segmenting for feature extraction
hello this is a code to implement a 4th order bandpass filter (and plot the fft spectrum of the signal before and after filter...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
find multiples of real number in sampled array
hello I had some code laying around and found it could be used for your purpose (the sine wave problem , and btw i could not r...

environ 4 ans il y a | 1

Réponse apportée
Adding additional column into the array
hello simply this Anew = [A B(:,5)];

environ 4 ans il y a | 0

Réponse apportée
How to arrange the correct range in colorbar in MATLAB
hello as I don't have the toolbox for fit, I used instead the FEX submission (excellent) from John D'Errico : polyfitn - Fil...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Plotting SPL(dBA) from an audio WAV file?
hello Zhu no problem, I'll try to answer as precisely as possible the amplitude is negative because the dB scale is the log of...

environ 4 ans il y a | 3

| A accepté

Réponse apportée
How do I iterate through a line while skipping a set number of values from the beginning of the line?
hello maybe this code could be of some help (to extract snipsets of data based on threshold comparison with running rms value ...

environ 4 ans il y a | 0

Réponse apportée
Smooth vector data with a specific step
hello not sure what you are trying to do , but if it's about splitting data in buffers and doing some math on the buffers (mea...

environ 4 ans il y a | 0

Réponse apportée
How should I import dataset separately from a long text file?
hello the demo txt files has two tables so this is how the code generates the labels and data (as cell arrays) label = 1×...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
calculating the x1 and x2 of a peak automatically for every data ?
hello tweaked and completed your code so that the Q factor is now automatically computed x1 is flow in my code, x2 is fhigh ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
using acceleration record, Get velocity and displacement signal & carry out FFT and plot the spectra
hello see my suggestion below clc clearvars data = readmatrix('GEE Earthquake.xlsx'); t = data(:,1); dt = mean(diff(t)); ...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
Flatten plot from two vectors
hello a small demo to compare smoothing and spline fitting (using this FEX submission : SPLINEFIT - File Exchange - MATLAB Ce...

environ 4 ans il y a | 0

Réponse apportée
Matlab: While loop use end values
hello try my little demo below clc clearvars nsamples=10; for k = 1:nsamples % constants init (my guess / ...

environ 4 ans il y a | 0

Réponse apportée
How to do simultaneous flickering of two straight line plots
hello Marissa try this code all the best clc clearvars clf figure(1) a=plot([6;9],[0.4;0.4],'linewidth',8,'color','green...

environ 4 ans il y a | 0

Réponse apportée
Loop over subfolders in directory instead of using 'cd' and perform calcuations and give output for every subfolder
hello this is my suggestion - you may have to adapt it to your specific needs clc clearvars %% define path yourpath = pwd...

environ 4 ans il y a | 1

Réponse apportée
How can I use the array of data into a formula to calculate and get the data.
hello some dots where missing here (read again the doc about dot product) Vout=f*Ip*((4*pi*Np*Ns*u0*b*x)./(3*m*log(r))).*(1-((...

environ 4 ans il y a | 0

Réponse apportée
How to filter a signal when I know the max and min frequencies of the signal.
hello try this Nb : for my demo only 10 first channels processed and displayed all the best clc clearvars %%%%%%%%%%...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Putting NULLs in between the string array.
hello here you are A={'a','b','c','d','e'}; index=[1,3,5]; %% main code ll = numel(A)+numel(index); index_comp = (1:ll)...

environ 4 ans il y a | 1

Réponse apportée
sine waveform with frequency and samples
%%Time specifications: f = 100; % signal frequency sps = 15; % samples per signal period Fs = sps*f; % samples per se...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to plot a smooth curve for Empirical probability density ?
hello tried a few options , smoothdata and spline fit. In fact, I was thinking you wanted something super smooth so I first o...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
Multiple plots with a several of variables
hello again a basic for loop demo on dummy data samples = 100; data = rand(200,samples); [m,n] = size(data); tra...

environ 4 ans il y a | 0

| A accepté

Réponse apportée
How to remove corresponding rows of a second array in the case of NaNs in the first array?
hello again a for loop is maybe overkill , but as it's what your are asking for , this is my suggestion : i prefered the nam...

environ 4 ans il y a | 0

Réponse apportée
Reading and combining multiple .txt files
hello again try this - we can expand on that for further processing or saving... natsortfiles is a very usefull tool to make...

environ 4 ans il y a | 0

Réponse apportée
When i run the blow code, the loop gets stuck on the underline line and it says that the indices on the left are not compatible with the indices on the right.
hello try this (T is a 3 x 3 matrix not a scalar so it must be stored in a cell) clc clear all sigma1=0.002; sigma2=-0.003...

environ 4 ans il y a | 0

Charger plus