Answered
Question on surface plotting (beginner)
@Young Chan Jung, A file of simulated AFM scan data is attached, with X,Y,Z in columns 1,2,3. I assume you will know how many ...

2 months ago | 0

Answered
Counting orbits taken by a satellite
@Aditya, [Edit: fix typos. No changes to code.] If you explain your data, you are morelikely to receive useful assistance. Yo...

2 months ago | 0

Answered
how to visualize the EEG functional connectivity data with circularGraph?
@Elaine, See if your issues have been addressed among the 36 existing Discussions on the File Exchange page, here (click the di...

2 months ago | 0

| accepted

Answered
converting txt file to mat file; ads1298ecgafe-pdk
@Elzbieta, [Edit: Spelling. No changes to code.] The numeric data in your text file includes only 10 rows. Assuming each row ...

2 months ago | 0

| accepted

Answered
Kalman filter 2d
@kalmanfilterlearner, [Edit: Fix spelling.] I modified your script to make it simpler. See attached file. To be specific, I r...

2 months ago | 0

| accepted

Answered
Why does frequency of complex exponential doubles when frequency increases?
@Clement, [Edit: Fix spelling mistakes; no changes to equations or to code.] your code is good. The unexpected result is due ...

2 months ago | 1

| accepted

Answered
Peaks and Valleys of Noisy, Increasing Sinewave
@kjb, [Edit: fixed spelling error and incorrect high frequency cutoff value in my description. Code is not changed.] orig_dat...

2 months ago | 0

Answered
Nondimentionalize the 2 DOF equations
@Yu, The two diagrams in your recent comment are helpful. You say in your recent comment "I define x2 as the relative displacem...

2 months ago | 0

Answered
Nondimentionalize the 2 DOF equations
@Yu, You are smart to add Sam Chak's name. He is a great and smart source of analysis and help. There is more than one way you...

2 months ago | 1

Answered
Is there a way to determine an equivalent circuit for Nyquist diagrams (I have the data set) using Matlab (or Simulink)?
@Arthur FdA, Yes you can. The experimental data needed for Nyquist and Bode plots is the same: a set of magnitudes and phases,...

2 months ago | 1

Answered
Improving personal Fourier Interpolation Model
@Giacomo, I do not understand everything you are doing in your script. But it looks lto me like you discard the phase informat...

3 months ago | 0

Answered
how do i get a proper time plot for this qudratic equation?
@Pranay, Let us try different initial values for x: x0=[-2,...,2]. Use a different initial value on each pass. Store results i...

3 months ago | 0

Answered
How to properly make a circular histogram?
@Neuroesc, Check out these items on the file exchange: https://www.mathworks.com/matlabcentral/fileexchange/65174-wind_rose-wi...

3 months ago | 0

Answered
Create (equal density) spaced vector in MATLAB
[Sorry if this is a duplicate answer. My first attempt to post produced an error message.] @Abinesh G, Here are command that w...

3 months ago | 0

| accepted

Answered
How can I find the power factor when my system contains harmonics?
@Chonlasit, When you have harmonics, the power factor for a single-phase system, and for a 3-phase system with three identical ...

3 months ago | 0

| accepted

Answered
Can't understand why Pwelch claims window is larger than input signal
@Jude, [Edit: correct spelling in my comments.) You need to use the transpose of the data array. pwelch() finds the spectrum ...

3 months ago | 1

| accepted

Answered
Simulating a high performance, very compact optical distance measurement sensors for applications such as ADAS
@idris, "Does mathworks provide such a functionality of simulating a ladar that is edge emitting, and having 905nm, single stri...

3 months ago | 0

| accepted

Answered
model reduction from a database created with xfoil
@Marko, I do not think proper orthogonal decomposition or principal component analysis will be useful for this problem. To do p...

3 months ago | 0

Answered
Can anyone help me in understanding of deconvolution based on toeplitz matrix?
@Junjie Zhao, Here is an examle, using d=[1 2 3 4 5], which you suggested. Since d has length 5, then the convolution d*w = p (...

3 months ago | 0

Answered
how to heat map encode a smoothed line of sparse time-series data
@hxen, [Edit: Add label to colorbar.] The script below plots the raw data and smoothly interpolated data, colored by speed. Yo...

3 months ago | 1

| accepted

Answered
Question Regarding Baseline Correction in Time-Frequency Analysis of Auditory MMN Data
@Elaine, [Edit: fix spelling errors] I understand that you want to do time-frequency analysis on EEG data evoked by auditory s...

3 months ago | 0

Answered
QRS area calculation from ECG
@Gültekin Günhan, [Edit: Add a citation of, and link to, the original Kors paper. The data and matrix and code are unchanged.]...

3 months ago | 0

Answered
Converting spectrum.pwelch//psd to equivalent pwelch call
@Ron Fowler, The defaults for spectrum.welch are listed here. The defaults for pwelch are listed toward the bottom of this p...

3 months ago | 0

Answered
Motion correction for foot movement in an MRI foot
@Trixie, Please upload a subset of the data array, im4d. For example, the first 10 time points, i.e. a 128x64x51x10 array. Mayb...

3 months ago | 0

Answered
Can we specify an "outward" direction to normal obtained from pcfitplane approach?
@Manish Kumar Nayak, I agree with @Matt J. To be more specific: Assume n is the normal vector returned by pcfitplane. If yo...

4 months ago | 0

| accepted

Answered
Find the ratio or difference spectra as time progresses
There is a large literature on transfer funciton estimation by taking the ratio of two complex spectra. This usually involves th...

4 months ago | 1

Answered
How to calculate HF/LF from ECG data
@拓実, The ratio of power in the low frequency band (defined as 0.04–0.15 Hz) to the high-frequency band (defined as 0.15–0.40 Hz...

4 months ago | 0

Answered
Plotting deflection of beam using macaulay functions
@Benjamin, You wrote: "An example of this function would be: slope=(1/(E*I))*(146.5*<x>^2+315<x-0.12>^2-70.24*,x.^3)" I inter...

4 months ago | 0

Answered
How to plot one curve and change color according to value
@Fritz Weld, [Edit: clean up code a lttle bit.] x = linspace(0,10); y = sin(3*x).*exp(0.5*x); y1=zeros(size(y)); y2=y1; % i...

4 months ago | 0

Answered
Random Number Generation with Parameters
@Demosthenis Kasastogiannis, I share @John D'Errico's question. I am not sure I understand your reply to his question. My under...

4 months ago | 0

| accepted

Load more