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.

Statistics

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

View badges

Content Feed

Answered
this plot3 looks 2D on live script (pointing downwards as it should), and 3D (pointing sideways for no reason), why?
I cannot run that since the data are missing. However to see it in all its 3D glory, use the view function to rotate the came...

alrededor de 6 horas ago | 0

Answered
Array Indexing and Function Handling question.
It would be necessary to define ‘F’ in terms of a single parameter vector — F = @(xy) [3*xy(1)+xy(2).^2 , xy(1).^2+3*xy(1)-1];...

alrededor de 6 horas ago | 1

| accepted

Answered
How to put endpoint on Bar graph
In R2021b, this is straightforward (and described in Specify Labels at the Ends of Bars). y = [75.8 78.05; 81 80.30; 91 80...

alrededor de 7 horas ago | 1

| accepted

Answered
how can I change my time so that it takes frequency 1/250 hz
If is the sampling interval, multiply it by the sampling instants to convert them to time — C = readtable('https://www.math...

alrededor de 7 horas ago | 0

Answered
How to plot color ball use matlab?
This is an interesting problem! This should get you started — Facets = 40; numPatches = fix(Facets/5); [X,Y,Z] = sphere(F...

alrededor de 11 horas ago | 1

Answered
split an audio file
Unless it is absolutely necessary to use reshape, use buffer instead. It is just easier. It only operates on one vector at a...

alrededor de 15 horas ago | 1

Answered
matlab font 2021b
There is likely a way to set this programmatically, however the easiest way to change the fonts is to click on Preferences, then...

alrededor de 15 horas ago | 0

Answered
How do I increase the x-axis to make my action potentials bigger
The X-limits need to be reduced in order to show the detail, and the last subplot needs to have its axes rescaled to show the de...

1 día ago | 0

| accepted

Answered
Symbolic ODEs aren't symbolic?
Because of the ‘R*s’ terms, the system is nonlinear. The vast majority of nonlinear differential equations do not have analytic...

1 día ago | 0

| accepted

Answered
How to calculate the duration of data points in days
Try something like this — Data = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/772213/pulses.txt'...

1 día ago | 0

| accepted

Answered
Error in ode45 (line 115) and odearguments (line 90)
There were two errors. First: dydt(2)=y(2)*(1-y(2))*((y(1)*(or*rr-br*re)-ar*rr); ↑ ← EXTRA UNMATCHE...

1 día ago | 0

| accepted

Answered
How to avoid using a loop here?
One approach — N = 5; tic [m,n] = ndgrid(1:N); A = 2*N + 1 - (m + n) toc Compare — tic A = zeros(N); for m = 1:N ...

1 día ago | 0

| accepted

Answered
Timeformat from HH:MM:SS to HHMMSS
Try this — time = datetime('12:30:00', 'InputFormat','HH:mm:SS', 'Format','HHmmSS') .

1 día ago | 0

Answered
Replace comma with dot after fopen
For MATLAB versions R2019a and later, the readmatrix function permits definition of the 'DecimalSeparator' (see the Text Files O...

1 día ago | 0

Answered
How to solve an ODE calculating the value of a variable inside a loop?
The problem is: x0 = X(end); so the error only occurs after the first iteration. The solution is: x0 = X(end,:) and thi...

1 día ago | 1

| accepted

Answered
how can I get the following graph from this data, changes are required in the code
Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/771138/G2_A.txt', 'Va...

2 días ago | 0

| accepted

Answered
How do i fix line13; Parse error at'=': usage might be invaild Matlab syntax? why it gives error ?
If you are referring to Line 13, it appears that there is nothing to the left of the equal (=) sign. Perhaps the intention is...

2 días ago | 0

Answered
How can i make my ODE graph make sense?
The fplot call is incorrect, and the function declines so quickly that it’s not possible to see it clearly with a time interval ...

2 días ago | 1

| accepted

Answered
Is it possible to save ECG waveform data as an text file with RR-intervals?
I am not certain what the desired result is. Try this — EKGsig = readmatrix('https://www.mathworks.com/matlabcentral/answer...

3 días ago | 0

Answered
Legend not matching the data
It is possible to label the individual plots in the plot calls. See Specify Legend Labels During Plotting Commands for detail...

3 días ago | 0

Answered
Solving system of coupled ode using ode45
The NaN values are the result of the initial conditions all being 0. With a bit of cheating (setting the initial conditions all...

3 días ago | 0

Answered
Torque ripple plot in MATLAB
Try something like this — t = linspace(0, 720, 1000); s = [sind(2.5*t); sind(2.5*t+180)]; figure plot(t,s, '--') hold ...

3 días ago | 0

Answered
what changes are needed
Try this — F = openfig('Manav Divekar untitled.fig'); F.Visible = 'off'; % Don't...

3 días ago | 0

Answered
How to create a table to show the results of a function code?
Subscript the variables so they are column vectors, then put them in the table and return the table as one of the outputs (or pe...

3 días ago | 0

| accepted

Answered
Function keeps running into errors when I call it
Try this instead — hpeakt = sorteddata.data(:,1); wpeakt = sorteddata.data(:,5); [phivalues] = findphases(wpeakt,hpeakt)...

3 días ago | 0

| accepted

Answered
converting sym function to string MATLAB
Try this — syms x y eqn = x^2+2*x*y+3*y^2; partial_eqn = diff(eqn, x); fprintf("The partial derivative of %s w.r.t. x is...

3 días ago | 1

| accepted

Answered
Use results in the definition of my functions
Try this instead — function pv=p(X,x) pv=X(1)*x.^2+X(2)*x+X(3); end Here, ‘X’ are the parameters and ‘x’ is the variabl...

4 días ago | 0

| accepted

Answered
Could someone please explain me this code?
That looks like something I wrote! It would be helpful to know the context (I don’t remember where I posted it), however it a...

4 días ago | 1

| accepted

Answered
Integrating a 2nd order ODE
This is a boundary value problem. Use bvp4c to solve it. syms y(x) x L Y q(x) = 2*cos(pi*x/L); Dy = diff(y); D2y = diff(...

4 días ago | 0

| accepted

Answered
How can I call half of text by using "textread" ? (1*4096 matrix to 1*2048 matrix)
I have never used textread, however that could be described in the format string, for example — formatStr = [repmat('%f',1,204...

4 días ago | 0

| accepted

Load more