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
  • Most Accepted 2021
  • 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
Error "Cannot Create Output File" When Trying to Save Figure
I don’t often use print however it appears that the first argument needs to be the file name to print to. The argument order is...

4 hours ago | 0

Answered
How to call a function with multi variable in real coded GA in function handle and how to define upper and lower bound of that variable in matlab?
If ‘Torque’ is the fitness function, it should be coded as: function T = Torque(p) % % % MAPPING: a = p(1), b = p(2), c = ...

9 hours ago | 0

Answered
the for loop is only giving me the last value
There are likely a lot of zeros in the vectors because of the way ‘i’ is defined. The loop is likely not necessary anyway. ...

19 hours ago | 0

| accepted

Answered
How to fit data to a function form
Yes! The mldivide,\ funciton will do this. x = randn(10,1); y = randn(10,1); z = randn(10,1); w = randn(10,1); DM = ...

19 hours ago | 0

Answered
Is it possible to rectify the figure such that the zig-zag effect doesn't occur?
Using one of the sort functions to sort on the independent variable could work. Remember to sort both variables by the same sor...

24 hours ago | 0

| accepted

Answered
Transfer Functions and Pole Zero forms
The Control System Toolbox tf and zpk functions could be helpful.

1 day ago | 0

Answered
How do I crop a matrix in MATLAB based on contents of one column?
I am not certain what the matrix is, or whether there are other missing entries in the matrix. If only the 5th column has missi...

1 day ago | 0

| accepted

Answered
how to plot graph for SIR epidemic model
I beleive ‘sir’ is supposed to be a system of ordinary differential equations. If so, this will get you started — tspan...

1 day ago | 0

Answered
how to fit ylabel for the plots?
One possibility — left_offset = 0.01; set(ylh, 'Rotation',0, 'Position',ylp+[left_offset 0],'VerticalAlignment','middle', 'Ho...

1 day ago | 0

Answered
extrapolate data to cross x axis
There are 19 variables in that .mat file. I have no idea which ones are to be extrapolated, so I took a wild guess on two of th...

1 day ago | 0

| accepted

Answered
finding matrix base on linear equation
I’m not certain what the desired result is here. Try this — x = linspace(-10, 10, 5); y = -0.15*x-21.3; X = [x(:), ones...

1 day ago | 0

Answered
Can I eliminate roundoff error caused due to floating point arithmetic limit in MATLAB?
Floating-point approximation error is simply inherent in binary representations of floating-point numbers. The best way to deal...

2 days ago | 0

Answered
What can I use instead of 'lsqcurvefit'
The ga function in the Global Optimization Toolbox does not use gradient descent and is therefore more resistant to getting hung...

2 days ago | 0

Answered
Trying to find an x value from a certain y value on my graph
I will re-post my original Answer because I believe it addresses the problem (although without the data, it is difficult to dete...

2 days ago | 0

Answered
Laplace transform not getting Value
I do not see any specific problems. syms x(t) Xs s eqn = diff(x,t,2)+2*diff(x,t)+26*x(t) == 10*cos(t)*(heaviside(t-pi)); ...

3 days ago | 0

| accepted

Answered
For machine learning classification between two samples, how can I focus on certain frequency components as the separating feature?
There may be many approaches to this. I actually did something similar using linear discriminant analysis (the Statistics and M...

3 days ago | 0

Answered
How can i create a discrete system with defined delays zeros and pole?
If you are starting with the pole and zero locations, you can get the transfer function representation easily by using the zpk f...

3 days ago | 0

| accepted

Answered
Plot 3rd differential equation
The documentation section on dsolve and Solve Differential Equation describes it better than I can! (It will be necessary to ...

3 days ago | 0

Answered
How to draw line between point and plotted line?
The two plots are different, so using the provided data (and the same Wikipedia article Distance from a point to a line) provide...

4 days ago | 0

Answered
In Scatter plot, make the largest data on the top
Since the data are being plotted with scatter3, experiment with the view function to rotate the 3D figure to display it as desir...

4 days ago | 0

Answered
Plotting bode diagram with a transfer function without values
No. How would you plot it without assigning values to any of the varaibles? (It would be possible to symblically derive some...

4 days ago | 0

| accepted

Answered
Control systems failing to plot
The only thing I can think of is to try these: restoredefaultpath % savepath % <— MAY NOT BE NECESSARY rehas...

5 days ago | 0

Answered
How can I define a symbolic function with vector arguments?
A vector has only one dimension (that I am aware of), so I assume ‘x’ needs to be a (3x1) vector. syms x ...

6 days ago | 0

Answered
Solve function has no numerical answer
Try this — lambda0=1.3e-6; L=1500e-6; syms x real A=6.2*10^(-22); B=6*10^(-18); C=lambda0/(2*L); eq=x==((C-A*x)/B)^1.2...

6 days ago | 0

| accepted

Answered
estimate transfer function from power spectrum density
I would not use the PSD for this, since the Fourier transform (fft or pspectrum) are better. If the System Identification Too...

7 days ago | 0

Answered
how to get tf answer for this problem?
Almost. Use the zpk function to do the format transformation. a=[40]; b=[0.05 1]; c=[1]; d=[0.5 1]; e=[0.8]; f=[1 1...

7 days ago | 1

| accepted

Answered
ode45 inside calling funciton error
All the arguments the function needs must be passed to it as additional parameters. See the documentation section on Passing ...

7 days ago | 0

Answered
Copy the text from the command window automatically
The diary function is an option, however if the code is printing to the Command Window, it would likely be easier to print it to...

7 days ago | 0

| accepted

Answered
How to generate line from data to the origin point in 3d scatter plots?
Try this — x1 = randn(10,1); % Column Vectors y1 = randn(size(x1)); z1 = randn(size(x1...

7 days ago | 1

| accepted

Answered
plot in logarithmic scale
The contourf function plots a plane, not a surface. To plot logarithmic contours of the ‘Z’ matrix, it will be necessary to c...

7 days ago | 0

| accepted

Load more