Community Profile

photo

Star Strider


Last seen: Today Active since 2012

Hic sunt dracones! PROFESSIONAL: Physician (M.D.): Diplomate of the American Board of Internal Medicine; M.Sc. Biomedical Engineering: Instrumentation, Signal Processing, Control, System Identification, Parameter Estimation NON-PROFESSIONAL: Amateur Extra Class Amateur Radio Operator; Private Pilot, Airplane Single Engine Land, Instrument Rating Airplane; Gamer NOTE: I do not respond to emails or personal messages, unless they are about my File Exchange contributions. Time Zone: UTC-7 (Standard); UTC-6 (Daylight Savings/Summer)

Statistics

All
  • Scavenger Finisher
  • Most Accepted 2022
  • Most Accepted 2021
  • Solver
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • Revival Level 3
  • First Submission
  • Grand Master
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 5

View badges

Content Feed

Answered
3 subplots with the bottom one split in 2 vertically?
Perhaps this — clearvars x = -10:0.01:10; y = cos(x); figure(1) subplot(2,2,[1 2]) plot(x, y) subplot(2,2,3) plot(x,...

ungefär 5 timmar ago | 0

| accepted

Answered
Why is my "plot" function not working?
Use the str2double function on the last four variables. EDIT — (26 Mar 2023 at 10:28) T = readtable('https://www.mathworks...

ungefär 17 timmar ago | 0

Answered
what test to use on z-scores
Since the zscore is simply a standardised method of expressing data, and if the mean values and standard deviation (std) values ...

ungefär 23 timmar ago | 0

| accepted

Answered
Using the surf and meshgrid command
I am not certain what function you want to plot, since you did not create ‘z’ as a separate matrix. (I am creating it here in p...

en dag ago | 0

Answered
How do I save a data in my excel to matlab folder, i e how do i create a path to matlab folder
I am not certain whether you want to read from the Excel file or write an Excel file from data you have created. Depending on...

en dag ago | 0

| accepted

Answered
Displacement from acceleration measurements
The slopes are due to a constant that is being integrated can be removed by subtracting the mean of the variable to be integrate...

en dag ago | 0

Answered
Change rlocus() axis units to Hz?
First, use rlocusplot since it allows options — sys = tf([2 5 1],[1 2 3]); hrlp = rlocusplot(sys); opts = getoptions(hrlp) ...

2 dagar ago | 0

Answered
Problems with signal processing
For a time-frequency plot, I would use the pspectrum function with the 'spectrogram' option, at least for an initial approach, a...

2 dagar ago | 0

Answered
Plotting Level Curves after function
Use the contour function. You can use fcontour, however it will not be possible to export its results to plot with contour. ...

2 dagar ago | 0

Answered
How can I line up plot edges in subplots?
I was hoping that the 'Position' (actually 'InnerPosition') of the first and last subplot axes would automatically be set correc...

2 dagar ago | 0

Answered
Sine curve fitting in MATLAB
@M — I was in the process of answering this when Win 11 crashed. Again. For the fifth time in two days, and three times when I...

2 dagar ago | 0

Answered
why am I getting the error "Incorrect number or types of inputs or outputs for function 'solve'."
For equality inside a symbolic expression, use double equal signs (==) — syms d e s=solve(7*d + 3*e == 71,d + 2*e == 20); s...

3 dagar ago | 0

| accepted

Answered
Plot complex signal with imaginary and complex
This is relatively straightforward — Fs = 1000; Tlen = 10; t = linspace(0, Tlen*Fs, Tlen*Fs+1)/Fs; s = exp(1j*t*2*pi); R...

3 dagar ago | 0

| accepted

Answered
Plotting 3D by rotate 2D plot around y-axis
Probably the easiest way is to define a cylinder and a shape vector — yv = [linspace(0.3, 1, 50)]; ys1 = yv.*exp(-1.75*yv)*5;...

3 dagar ago | 2

| accepted

Answered
Unable to find symbolic solution
The system is nonlinear, so it quite likely does not have an analytic solutioon. Try something like this— syms y(x) x Y D...

4 dagar ago | 0

| accepted

Answered
Using histcounts to determine loose data mode
I am not certain what you want to do. The histcounts function has a third output bin that will index into the elements that w...

4 dagar ago | 0

Answered
Find kinetic constants from differential equations
Some examples: Monod kinetics and curve fitting , Parameter Estimation for a System of Differential Equations , and there are s...

5 dagar ago | 0

Answered
How do you indicate the order of plotted points in a polar plot?
Unforutnately, quiiver and polaraxes don’t work together. The only alternative is to create your own polar axes as Cartessian a...

5 dagar ago | 0

| accepted

Answered
How to calculate respiratory rate from a Doppler radar signal
Perhaps something like this — LD = load(websave('radar_signal','https://www.mathworks.com/matlabcentral/answers/uploaded_files...

5 dagar ago | 0

| accepted

Answered
Where to find changes in functions in Matlab versions?
See: Release Notes, however that only goes back as far as R2018a. I am not certain that other documentation exists online, alth...

5 dagar ago | 0

Answered
calculate the maximum of every 24 data in matrices
If the times are in (or can be converted to) datetime arrays, one option would be to transpose the matrix so that the sensors ar...

6 dagar ago | 0

| accepted

Answered
How do I fill legend on double y axis plot?
Without seeing your code (and your MATLAB version, although I’m not certain how relevant that is in this instance), it’s not pos...

6 dagar ago | 0

Answered
How to improve speed of interp1 in for loop?
I’m not certain that I follow what you’re doing. However if you know the ‘inputValue’ and you want to find the closest indices ...

6 dagar ago | 0

Answered
plot function legend is wrong.
The legend is probably picking up the first line plotted, that by default is blue. Perhaps this — figure (55) for i = ...

6 dagar ago | 0

Answered
Upgrading R2021b to R2023a, Need Instructions
There is no actual ‘upgrade’ involved. Simply download R2023a (choose to create the desktop icon if that is available with your...

6 dagar ago | 0

Answered
How to remove the horizontal line from my NMEA plot ?
With no file or other information, the problem may be that there is a common value (possibly 0) that separates segments of the f...

6 dagar ago | 0

| accepted

Answered
i have a syntax error in this expression : Vs+K*(C/(C-(u(1)*u(2)))*u(1))+R*u(1)-A*exp((-B/C)*u(1)*u(2))
Checking it with the Symbolic Math Toolbox, it appears to be correct. The only suggestion I can offer is to use element-wise op...

6 dagar ago | 0

Answered
The numbers do not appear in standard format despite the writing (format shortG)
One option is to use string arrays — format shortG Mf=6.480554950317725e+03; Cp_sea=3.976; t_out=100; t_in=25; Qu=Mf*Cp_s...

7 dagar ago | 0

Answered
What does this means?
It returns the elements in from rows 1 and 3 in columns 1 and 2 — G= [ 1 2 3; 4 5 6; 7 8 9]; H= G([1 3], [1 2]) .

7 dagar ago | 0

| accepted

Answered
ytickformat('percentage') not working with latex interpreter
This: ytickformat('$%g \\%%$') seems to work — figure(1) plot(1:100) ytickformat('percentage') figure(2) % This is th...

7 dagar ago | 0

| accepted

Load more