Community Profile

photo

Star Strider


10,581 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
A the surface x->-10:10, y->-10:10, z=0 to a plot of a curve in 3d (using plot3 in Matlab 2014b)?
Try this: xx=0:9; yy=[-5:0 -1:-1:-4]; zz=[1:5 4:-1:0]; figure plot3(xx,yy,zz,'-o'); hold on patch(...

1 hour ago | 1

| accepted

Answered
how to solve the modified gompertz equation
Try this: y=[10 12.5 15 17.5 20 22.5 25 27.5 30 32.5 35 37.5 40 42.5 45 47.5 50]; t=[62.1 77.3 92.5 104 112.9 121.9 12...

2 hours ago | 0

Answered
Why can't I multiply two arrays using the '*' operator?
Because the dot operator does _element-wise_ multiplication (and division and exponentiation). These are termed _array_ operati...

16 hours ago | 0

| accepted

Answered
Convert from XYZ surface plot to just Z surface plot
You did not say what you have tried, and what did not work. Consider: Z = randn(100); figure surf(Z) vie...

17 hours ago | 0

| accepted

Answered
XLim for bar plot with several data series
Since *|'XLim'|* is an axes property, do this: figure bar(rand(1,200), 'hist','FaceColor','flat') XL = get(gca, 'XLi...

17 hours ago | 0

Answered
Isotherms Plot for a waterbody
I do not know what your data are, so I can only guess. I would use the <https://www.mathworks.com/help/matlab/ref/surf.html...

19 hours ago | 0

Answered
X-axis for Fast Fourier Transformation
I am not certain what you are doing, or what you want. I usually create frequency vectors (the *|x|*-axis for a Fourier tra...

23 hours ago | 0

Answered
plotted 3 graph, only 2 shown up
Nothing is wrong. Note that if the *|‘x’|* and *|‘y’|* vectors have the same values, *|‘a’|* and *|‘w’|* are the same, so *...

1 day ago | 0

Answered
Color based on values from a matrix.
This seems to color them correctly: M = [randperm(20)', randperm(20)', randi(1000, 20,1)]; figure scatter(M(:,1)...

1 day ago | 1

| accepted

Answered
How do I add values to a vector instead of replacing them?
Use a row and ‘default’ column subscript for *|allIDs|*: allIDs(i,:) = [p(i) ImageIDs(1) ImageIDs(2) ImageIDs(3) ImageIDs(...

1 day ago | 0

| accepted

Answered
Solving Coupled ODE's by ODE45
If I understand correctly what you want, you can simply modify *|‘arbit’|* (and calls to it) directly: arbit2 = @(t,y, gam...

2 days ago | 0

Answered
How to solve an equation and build a vector using a for loop?
Note that zero is not a positive integer. Positive integers are integers greater than zero. Try this: r = 0:0.0025:0...

3 days ago | 0

Answered
Integral vector .* sin(pi*x) error matrix dimensions must agree.
When in doubt, and if you do not intend matrix operations, vectorise every operation to do element-wise operations. Specifying ...

3 days ago | 0

| accepted

Answered
Showing points in 2D map.
Finding the centre and radius is trivial: T0 = [T1; T2; T3; T4]; C = mean(T0); ...

3 days ago | 0

| accepted

Answered
How to plot RMSE vs Epochs graph
As I understand it, ‘RMSE’ is the square-root of the MSE value. I am not certain what you want to do. Here are two options...

3 days ago | 0

Answered
How to Solve Non Linear Electronutrility condition in Space region region in semiconductor? Using vpasolve it is showing [empty syms] error while a theortical solution exist.
There appears to be a minimum, but not a root. *_To illustrate_ —* fcn = @(E0) (sqrt(2)*(Nb+Pb)*e*Ld*sqrt(cosh(ub+(E0...

3 days ago | 2

| accepted

Answered
Converting fractions to decimals in exponents of symbolic expressions
No. From the documentation under <https://www.mathworks.com/help/symbolic/vpa.html?s_tid=doc_ta#buyta3e-4 *Tips*> (link): ...

3 days ago | 0

Answered
how to get zero mean normalized input
Much depends on what you intend by ‘normalize’. If you have *|R2018a|* or later, use the <https://www.mathworks.com/help/ma...

3 days ago | 0

Answered
Finding minimal vector of matrix
The <https://www.mathworks.com/help/matlab/ref/sortrows.html *|sortrows|*> (link) function is one option: M = [0.0026 0...

4 days ago | 0

| accepted

Answered
How can I decompose the alpha, beta, gamma & theta bands using matlab for a 14-channel raw EEG data?
One option: <https://www.mathworks.com/matlabcentral/answers/311687-hi-all-i-m-having-trouble-to-get-transfer-function-for-t...

4 days ago | 0

Answered
Help plotting Integral Equation !! ?
Use the <https://www.mathworks.com/help/matlab/ref/integral.html *|integral|*> (link) function. If you are not already fami...

5 days ago | 0

Answered
Plot in matlab 2012 not working in matlab 2016
See the section in the <https://www.mathworks.com/help/matlab/release-notes.html?rntext=&startrelease=R2014b&endrelease=R2014b&c...

5 days ago | 0

Answered
error bar in two plot3 and how to show error of figures?
You only have two curves so statistics (such as the standard deviation) are meaningless, and (to the best of my knowledge), *|er...

5 days ago | 0

| accepted

Answered
Finding and Identifying Roots
The parentheses are not correctly placed. The entire quantity *|‘(-2*b) + sqrt((2*b)^2 - (4*3*a*c)))’|* should be divided b...

6 days ago | 0

| accepted

Answered
How to obtain the period of a function created by ODE45
Try this: function [] = pendulum() tspan=[0 70]; h0=[pi/18, 0]; opts = odeset('Events', @Events); ...

7 days ago | 1

| accepted

Answered
Read special text file
This will read your file: fidi = fopen('Simon REMY B52-2016.txt'); D = textscan(fidi, '%{yyyy-MM-dd HH:mm:ss}D %f', 'He...

7 days ago | 0

| accepted

Answered
Plotting a straight line y=c
The easiest way to plot a horizontal line at *|‘c1’|* is simply: plot(xlim, c1*[1 1]); The *|xlim|* call returns the cu...

7 days ago | 1

| accepted

Answered
Creating discretized grid without values, only text
Try this: x = 0:0.1:1; y = 0.25; figure plot([x; x], [ones(1, numel(x))*0.5; zeros(1, numel(x))], 'k') tex...

7 days ago | 2

| accepted

Answered
How do I create a random matrix from a normal distribution given the mean and variance (mean = 2 and variance = 8).
I would just do this: mu = 2; vr = 8; RandomNormalMatrix = mu + sqrt(vr)*randn(100); See the documentation on the...

8 days ago | 1

| accepted

Answered
How to separate string and number?
This is a rather trivial <https://www.mathworks.com/help/matlab/ref/regexp.html *|regexp|*> (link) call: str = 'abcdef[123...

8 days ago | 0

Load more