Community Profile

photo

Star Strider


11,628 total contributions 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.

Contact

Star Strider's Badges

  • Grand Master
  • 36 Month Streak
  • Thankful Level 3
  • Revival Level 2
  • Knowledgeable Level 4
  • First Answer
  • Scavenger Finisher
  • Solver

View details...

Contributions in
View by

Answered
Parameter estimation in ODE
You are trying to fit 5 columns of your differential equation to 4 columns of data. That will throw the error you got. Chang...

9 hours ago | 0

Answered
How to remove NaN values from an array
Since you want the lines to be continuous, consider using the fillmissing (link) function to fill in the NaN values with numbers...

13 hours ago | 0

Answered
How do I output to the command window where the sum of the bars on the graph equal zero along the x axis
If fyou are referring to ‘PWA’, try this (after your plot call): for k = 1:size(PWA,1) PWA0(k) = interp1(PWA(k,:), x, 0, ...

13 hours ago | 0

Answered
Filling missing values of selected columns of a table with previous values
You most likely have to use fillmissing with each variable separately: Data.English = fillmissing(Data.English,'previous'); D...

14 hours ago | 0

Answered
Why does the line for my graph not appear?
The reason is that ‘b’ has only the value at the end of the loop, so a scalar. Try this: syms x f = 5./((7+x).^2); a=0; ...

16 hours ago | 0

| accepted

Answered
what is the meaning of @ in matlab code?
The ‘@’ sign denotes a function handle. See the documentation on Function Basics (link) for details.

19 hours ago | 0

Answered
I am trying to accomplish this same task using the find() command but I'm not sure how.
Here is a version that uses a logical vector in place of the find function: x = 0:0.1:6; y = -5*x; lv = (2 <= x) & (x <= 4);...

1 day ago | 1

| accepted

Answered
getting user input in title and legend
I would use the inputdlg (link) function. You can also use input.

1 day ago | 0

Answered
sgolayfilt function not smoothing
Try it with a 3-degree polynomial rather than a 5-degree polynomial.

1 day ago | 0

Answered
Surface Plot for ODE solution
You need to make a few changes in your code: w = 1; k=1; figure tspan = linspace(0, 5); % ...

1 day ago | 0

| accepted

Answered
Solving Integrals with Matlab
There is an error in the anonymous function in ‘A3’, and since MATLAB is case-sensitive, ‘Intfun’ is not the same as ‘intfun’. ...

1 day ago | 0

Answered
Why is my Graph not plotting properly?
Add a counter. At the beginning of your while loop: k1 = 0; theta = 0; % Rotational arm angle % while(theta <= 360) % Bei...

1 day ago | 1

Answered
A Problem with function
Save it on your MATLAB search path of user files as: normalidade.m.

2 days ago | 0

| accepted

Answered
Phase Plot - Velocity vs Position
Unless I am not understanding your code, that would appear to be: figure(2) plot(y, v) grid xlabel('Position') yleabel('Ve...

3 days ago | 0

Answered
Fsurf plot wrong when x coefficient is 0
The fsurf function cannot guess what you are thinking. Try this version of your code: syms x y z u v f1(v) = 214.906098118...

3 days ago | 0

| accepted

Answered
Frequency scale in fft after zero filling (odd/even number of data)
I am not certain what you are doing. One way to make the frequencies equal would be to use the second argument, ‘n’, in the ff...

3 days ago | 1

| accepted

Answered
How do I extrapolate a point from a generated graph.
The easiest way is to use the interp1 (link) function to get the time when the car has travelled 250m.

3 days ago | 0

| accepted

Answered
How to use a subplot in a for loop
I am not certain what you want. Try this: syms y x y = acos(x); n = [3 5 7] ttlc = {'y', 'T3(x)', 'T5(x)', 'T7(x)'}; ho...

3 days ago | 0

Answered
How do I get some part of my boxplot labels italic? I can not change the Interpreter to 'tex' somehow? Why? How can I work around?
Use the 'TickLabelInterpreter' property: dados = rand(100,2); boxplot(dados,'labels',{'\bf\it{IDEB}__{2007}','\bf Efficiencie...

3 days ago | 0

| accepted

Answered
MATLAB system of ODEs
Please see: System of 2 differential equations (link).

4 days ago | 1

| accepted

Answered
i am trying to put my level curves and gradient vectors on same figure but i can't
Your current approach is not going to work. Try this instead: f=@(x,y) 16*y.^2 + 9*x.^2; g = @(z) gradient(z) figure(1) ...

4 days ago | 1

| accepted

Answered
How to change color for stacked bar chart
Try this: y = [50 50; 25 75; 30 70]; figure ba = bar(y,'stacked', 'FaceColor','flat'); ba(1).CData = [0.3 0.3 0.7]; ba(2...

4 days ago | 0

| accepted

Answered
Does audioread not return a vector?
It depends on your audio file. A stereophonic signal will return an (N x 2) matrix, with the first column being the left channe...

5 days ago | 0

| accepted

Answered
amplitude plot not working
Your ‘A’ vector has purely imaginary components. Try this: plot(omega, imag(A))

5 days ago | 0

Answered
How would I add labels to points?
Use the text (link) function. You will likely also need the sprintf function.

5 days ago | 0

| accepted

Answered
RMSE of sequences in cell arrays with different length
I am not certain what final result you want. This should get you started: subt = cellfun(@minus, YTest, YPred, 'Uni',0); ...

5 days ago | 0

Answered
How can I generate reciprocal of a matrix
It depends on what you mean by ‘reciprocal’. If you want ‘X’ such that: A*X = eye(size(A,1)) then: X1 = inv(A); ...

5 days ago | 0

| accepted

Answered
How can print out the below content by MATLAB program?
You do not need the second for loop. Simply print the value of ‘j’ in each iteration of the ‘i’ loop: for i = 1:1:5 j =i...

5 days ago | 1

| accepted

Answered
ERROR message when running code
Your code plots all three variables. Note that they only differ by phase, so the easiest way to detect the difference is where ...

5 days ago | 1

| accepted

Answered
LaTex with 2 strings separated by a num2str
Try this: errordisplay=[' $\varepsilon_{RTP}=$ ',num2str(rtep),'\%']; It seems you need to ‘escape’ the ‘%’.

5 days ago | 1

| accepted

Load more