Community Profile

photo

Star Strider


Last seen: Today Attivo dal 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

Visualizza badge

Content Feed

Risposto
Why is the line over imagesc not where I expected it to be?
The image functions such as imagesc reverse the y-axis direction. Experiment with: set(gca, 'YDir','normal') to see if tha...

circa 15 ore fa | 0

Risposto
How do I fit a curve to the peaks of the data?
The approach depends on the result you want from the curve. If you want parameters, then findpeaks or islocalmax will be nece...

circa 15 ore fa | 0

Risposto
intersection from a plot and loop
clear all; close all W_takeoff = 10000; W_landing=6000; S = 20; AR = 5; cd0 = 0.02; k = 1/pi/AR; RC=0.51; clalpha = ...

circa 18 ore fa | 0

Risposto
How can I add linspace in a For Loop
There is not enough information (such as a description of what you want to do). However one possibility is something like thi...

circa 20 ore fa | 0

Risposto
Plot a function of three variables on a surface plot
If all the data are vectors (that would appear to be true since ‘x’ is a vector), it would be necessary to use either the gridda...

2 giorni fa | 0

Risposto
How can I animate springs in MATLAB?
One approach — L = 1600; % Vector Lengths t = linspace(0, 16*pi-(1/L), L); ...

2 giorni fa | 0

| accettato

Risposto
differentiate between month in dataset.
Perhaps something like this — secondsperyear = 60*60*24*365; DT = datetime(2023,1,1,0,0,0) + seconds(0:secondsperyear-1).'; ...

3 giorni fa | 0

Risposto
Hot plate PID control according to measured graphs
I took another look at this, however this time using the second file. (This same approach will likely work on the first file as...

3 giorni fa | 0

Risposto
To obtain the cumulative signal power spectrum from the single-sided spectrum of a biomechanical signal to identify the frequency under which 99% of the signal power is
I cannot find a time vector or sampling frequency. I need at least one of those. The article is open-source, however not ill...

3 giorni fa | 0

Risposto
Using rlocus I am confused
You appear to be overthinking it. Try this — G = tf([1 1], conv([1 2 2], [1 2 5])); figure rlocusplot(G) grid % title...

3 giorni fa | 0

| accettato

Risposto
nlarx is not working at all
Check to see if you have another function (or something else) with the same name. To do that, run this: which nlarx -all f...

4 giorni fa | 0

| accettato

Risposto
Why am I getting the same colour of the legend for the last 2 plots?
I suspect that it is because ‘y2’ has more than one row. The solution is to return the handles of the plots, and select only ...

4 giorni fa | 0

| accettato

Risposto
Choosing dimension for filter
I believe so. From the filtfilt documentation for x: ‘The function operates along the first array dimension of x unless x i...

4 giorni fa | 0

Risposto
How to draw the delta signal in matlab
The function normally will not plot in MATLAB because it has infinite amplitude and infinitesimal width. So it is necessary ...

4 giorni fa | 0

Risposto
Problem during the use of 'fzero'
I am not certain what you want to do. I suspect that you want to loop over varying values of ‘t’ however ‘t’ never appears as...

4 giorni fa | 1

| accettato

Risposto
Extracting datetime and adding reference time
This was a bit more involved than I theught it would be — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uplo...

5 giorni fa | 0

Risposto
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,...

6 giorni fa | 0

| accettato

Risposto
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...

6 giorni fa | 0

| accettato

Risposto
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 ...

7 giorni fa | 0

| accettato

Risposto
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...

7 giorni fa | 0

| accettato

Risposto
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...

7 giorni fa | 0

| accettato

Risposto
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...

7 giorni fa | 0

Risposto
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) ...

7 giorni fa | 1

| accettato

Risposto
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...

8 giorni fa | 0

Risposto
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. ...

8 giorni fa | 0

Risposto
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...

8 giorni fa | 0

| accettato

Risposto
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...

8 giorni fa | 0

Risposto
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...

9 giorni fa | 0

| accettato

Risposto
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...

9 giorni fa | 0

| accettato

Risposto
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;...

9 giorni fa | 2

| accettato

Carica altro