Community Profile

photo

Star Strider


11,210 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
Creating a linear plot over a plot of giving numbers
Try this: plot (x1,y1,'p') hold on plot([0 20], 3+0.5*[0 20]) hold off It’s a linear function, so you only need the limits...

3 hours ago | 0

Answered
how to solve laplace transform problem in matlab
We do not know what you did to solve this. (Always post what you’ve already attempted.) However, if you got frustrated, that i...

3 hours ago | 0

Answered
Writeing a stings using Matlab 2015
The standard output (The Command Window) has a file identification number = 1. So: fprintf(fid, 'Hello\nWorld\n') will pr...

5 hours ago | 0

Answered
Step Fucntion in Matlab
Since the unit step functrion is defined as being equal to 1 for , I would use: Ustp0 = @(t) (t >= 0); Ustp1 = @(t) 0.5*(t =...

5 hours ago | 0

Answered
How can I subs 2 symbolic vectors in 1 comand?
You defined ‘Z’ to require 4 different arguments, so the substitution has to match them, either using subs or using ‘Z’ as a fun...

6 hours ago | 0

| accepted

Answered
Bathymetric data into a surface plot
Try this: [D,S] = xlsread('Bathymetric data (XYZ).xlsx'); Lon = D(:,1); Lat = D(:,2); Dep = D(:,3); figure plot3(Lon, L...

8 hours ago | 0

| accepted

Answered
When I run the program inaccurate results appear What is the problem?
The best approach to this is likely not the vpasolve function, since it takes forever. I have no idea of these are the ‘accur...

9 hours ago | 0

| accepted

Answered
About MATLAB R2018B update
I installed the R2018b Update3 yesterday and when I checked just now, it said that I was running the latest update. I suggest...

10 hours ago | 0

Answered
How I can Plots this function
Another approach: x = @(t) 3*exp(-2*t) .* (t >= 0); t = linspace(-10,10); figure plot(t, x(t))

11 hours ago | 0

Answered
How to keep a patch object and its rotation in the same plot
Try this: x = [1 2 2 1]; y = [1 1 2 2]; figure bot = patch(x,y,'blue'); rotate(bot, [0 0 1], 45) hold on patch(x,y,'bl...

23 hours ago | 0

| accepted

Answered
ellip is missing from Matlab
It you aree certain that you have it licensed and installed, you may have path problems. Run these lines (from a script or yo...

1 day ago | 0

Answered
For-if loop not working?
Lose the loop! Try this: A=[2 5 4 13 4 23 8 3 9 5 0]; [Maxima,MaxIdx]=findpeaks(A) Maximav = Maxima(Maxima > 10); Ma...

1 day ago | 0

Answered
How to fit Phase type distribution to empirical data
It may be possible, although you would have to create your own distribution function. See the documentation on Probability Dis...

1 day ago | 0

Answered
How to use trapz for histogram?
Try this: a=[1,3,3,2,1,3,8,8,9,0,6,5,15,4,14,3,2,1,2,14]; aa = histogram(a,'Normalization','probability'); edgs = aa.BinEdge...

1 day ago | 0

Answered
using strcmp for index
Try this: pos{x} = strcmp(trials{x},{'BLCU' 'BLCD'});

1 day ago | 0

Answered
plot integral equation coming from ode solver
Use the trapz (link) function: idx = find(t1 <= 0.42); final = trapz(t1(idx), Aout1(idx)) Since you menitoned cumsum, also s...

1 day ago | 0

Answered
what type of plot is this?
See the documentation on the surf, axis, shading, view, and colormap functions.

1 day ago | 0

Answered
Get all vectors with possible values of each elements
There are a number of funcitons you can use to optimise your funciton. See the documentation on Nonlinear Optimization (link) f...

1 day ago | 0

Answered
How to remove the extra symbols in a box figure?
The red + symbols are ouitliers. You cannot eliminate them, however if you set their colours to white, you can make them effect...

1 day ago | 0

| accepted

Answered
How to find rearrange these values in a new row and column?
One approach: A = [1 2 2 3 3 4 ...

2 days ago | 0

| accepted

Answered
help plot the inequality
Straightforward: syms a b X Z assume(X > 0) assume(Z > 0) It does not appear to have any effect on the rest of your posted...

2 days ago | 0

Answered
Solve nonlinear equation with different parameters
Do something like this (although with the correct values for the constants): A = 13; B = 5; C = 7; D = 3; F = 11; V = 42;...

2 days ago | 0

Answered
Subplots with axes of same scale but different lengths
I am not certain what you are asking. If you want all the subplots to have the same axis limits, use the axis (link) function. ...

2 days ago | 1

| accepted

Answered
What is wrong with my use of ode45?
There were a few problems in your code that I fixed. First, be very careful creating matrices such as you did in ‘odefcn’ bec...

2 days ago | 1

| accepted

Answered
divide data according to year, month, day
See if the findgroups (link) function (introduced in R2015b) will do what you want.

2 days ago | 0

Answered
How can I split up several numbers in one cell from an excel file?
I am not exactly certain what you want. One option would be the mat2cell (link) function. Each column would be its own cell,...

2 days ago | 0

| accepted

Answered
How to make polynom with unknown coefficients?
You need the poly2sym (link) function as well: syms a b c x p = poly2sym([a b c],x) producing: p = a*x^2 + b*x + c

2 days ago | 0

Answered
For Loop is only running once
Your loop is fine, although you’re not using it in your calculations because none of your variables are subscripted, at least th...

3 days ago | 0

Answered
How to find a slope of signal if we do not know the value of x1, x2, y1, y2
I am not certain what you intend by ‘slope of a signal’. You can easily determine the derivatives of the signal with the gradie...

3 days ago | 0

Answered
comparing point coordination with line
One approach: y1 = @(x) -0.3*x + 4.4; y2 = @(x) 3*x - 22; pt = [10, -10]; Difference = [y1(pt(1))-pt(2); y2(pt(1))-pt(2)] ...

3 days ago | 0

| accepted

Load more