Answered
How to calculate average frequency and a frequency over time graph all in Matlab?
@Ugonne, [edit: I adjusted my discussion at the bottom slightly. No changes to code or plots.] I made a recording with my comp...

4 months ago | 0

Answered
How to datasample exponential data without losing the exponential decay?
@SARA CACCIATO SALCEDO, @Star Strider and @Les Beckham have provided excellent suggestions. You want a matrix that is 400x1000...

4 months ago | 2

Answered
Good evening, we have a point cloud and have applied an first rotation to align the point cloud along the y-axis. Now we have a problem with a second rotation
@Alessandro, You can find the directions of the principal axes by eigenvalue decomposition of the covariance matrix of the poin...

4 months ago | 0

Answered
I need help using the corrcoef function to calculate PRx (pressure reactivity index)
@Caleb, The pressure reactivity index is defined as "a moving correlation coefficient from 30 consecutive 10-s averages of ICP ...

4 months ago | 0

Answered
how i can modifiy the code to make the bandwith of fft less ?
@ANAS HAMZAH, To get the very narrow bandwidth shown inthe second plot in your PDF, you need to inccrease the duration of the s...

4 months ago | 0

Answered
Determining gait cycle from heel marker motion capture data
@Katie, Post some example data if you wish. Here is a paper I co-authored on the topic of identifying gait cycle during teadmi...

5 months ago | 1

Answered
The Mathieu Equation—Stability for 2DOF whirlflutter system
@Nikoo, [Edit: Replaced scan of Figure 9 with a better scan that does not cut off the Y axis label.] You seek advice for code ...

5 months ago | 0

Answered
Face Difficulty when converting tensorflow model to Matlab
@Ze, Your function compute_loss_gradients(...) calls function compute_loss3(). The call to compute_loss3(...) includes w_upd ...

5 months ago | 0

| accepted

Answered
MSSA method multichannel spectrum analysis
@ahmad Saad, I recommend that you do the Matlab tutorial on singular spectrum analysis here, then do the tutorial on multichann...

5 months ago | 0

Answered
How do I download a .set file onto EEGLAB?
@Tyler, The .set files in EEGLAB have a complicated structure. The best way to get the data in a .set file into the Matlab wor...

5 months ago | 0

Answered
How to plot cross quantile correltaion heatmap
@Hamid Muili, Some data: C=(0.71*rand(21,21)).^2; Plot the data x=0:.05:1; y=x; [X,Y]=meshgrid(x,y); surf(X,Y,C) colormap...

5 months ago | 0

Answered
I want to plot same X axis and different Y axis like timing diagram
@Bahadir Guven, Make some simulated data: t=0:0.5:4.5; % time (ms) N=length(t); Va=randi([0,1],1,N); Vb=randi([0,1],1,N);...

5 months ago | 1

Answered
How to plot a poincare beam showing its singularity using polarisation distribution plot
@Aswathi K, [Edit: Correct spelling mistakes and add comments to the code.] It seems the green and black in your image repres...

5 months ago | 0

| accepted

Answered
3-factor anova
@Elzbieta, I like the answer from @Aditya, because it gives links to the documentation for N-way ANOVA. I interpret your ori...

5 months ago | 1

Answered
Analyze MIMIC III waveform data directly in Matlab
@Ram Krishnan, After you reigtser on the physionet site, you may use the package here https://archive.physionet.org/physiotoo...

5 months ago | 1

Answered
Deforming sheet into conical structure
@Priyanshu, You want to map points from the x-y plane (flat sheet) to half of a conical frustrum. The initial points are point...

6 months ago | 0

| accepted

Answered
Why such a fuss with ndgrid and meshgrid issues?
@Kristoffer Walker, I definitely agree with you. I use inputs that are non-square when i use surf() and related routines. Thus...

6 months ago | 0

Answered
lsqcurvefit not working properly
@Jack, It would be helpful to run your script in the window to show that the "really bad" fit looks like. Post only the minimum...

6 months ago | 0

Answered
How to determine sampling frequency of wgn?
@Jan, [Edit: Re-ran the script because the plot below was wrong, probably from an earlier version of the script. Thanks to @Pau...

6 months ago | 0

| accepted

Answered
How to display skeleton data
@NGR MNFD, I assume jints 0 to 24 in the CSV file correspond to joints 1 to 25 in the skeleton connection list. Please be consi...

6 months ago | 0

Answered
Using iFFt to convert acceleration PSD ((m/s²)²/Hz) to random acceleration time series (m/s²)
@Tiasa Ghosh, [edit: I uploaded an updated version of SpectrumAnalysisNotes. The new version has more formulas and examples, n...

6 months ago | 0

Answered
If & elseif to determine temperature essentially
@Zachary, Read the help for "if... elseif...else...end" and the help for "switch...case" to learn about different ways to appro...

6 months ago | 1

Answered
How to apply a linear ramp to start and end of several EEG epochs to attenuate the abrupt onset and offset?
@Elaine, I will assume you have imported the EEG data into vector x, with T*Fs rows, where T=3 s=record duration, and Fs=sampli...

6 months ago | 0

| accepted

Answered
Contour plot from x and y data points with corresponding contour level
@Chris Nemecek. The code below plots the x,y coords of the data, in order to give insight get into the spatial sampling. The c...

7 months ago | 0

Answered
Identifying all elements and their nodal coordinates given all possible nodes
@Sadie, You want to "identify every single square element". Do you have a preferred format for the "identified" faces? What do...

7 months ago | 0

Answered
How to make the colorbar/colormap with colors the same as ANSYS in Matlab?
@Lidianne Mapa, [edit: Fix spelling errors in my remarks. No changes to the code.] x=0:.01:6; y=0:.01:2; [X,Y]=meshgrid(x,y);...

7 months ago | 1

| accepted

Answered
If I have an array and I need to find an element in the array how do I go about it?
@Joseph, states = [1 0 0; 1 1 0; 0 1 0; 0 1 1; 0 0 1; 1 0 1; 1 1 1]; C = [1 1 0]; for i=1:length(states), if states(i,:)==C, ...

7 months ago | 1

Answered
Lead Concatenation in ECG Classification Using CWT: Required or Optional?
@Sabrine, I assume you have read this paper, published in 2021: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7831114/ The auth...

7 months ago | 1

Answered
Smoothing or special techniques to resolve uncertain peaks are required!!
@한 박, You ask "how can I make this data as smooth as a sin function?". You could fit the data with a sinusoid. Here is an exam...

7 months ago | 1

Answered
How to make curve fitting by spline between two Arcs
@sila, If you connect the two curves with a semicircle, then the first derivatives match at the connecting points. However, the...

7 months ago | 0

Load more