Community Profile

photo

Star Strider


Last seen: Today
13 279 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

  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • First Submission
  • 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
How do I use the "omitnan' option for the Mean function when calling the function using the splitapply function?
One option: splitapply(@(x)mean(x,'omitnan'),MyArray,G)

ungefär 10 timmar ago | 0

Answered
Print figure without its title
One option is to keep the title in the figure call. See Specify Figure Title for an example. Another option is: title('Ran...

ungefär 14 timmar ago | 0

Answered
Error calling a function or indexing a variable, apparently the first line for plotting is wrong, can't figure out whats wrong with it...
The ‘error’ function needs to be defined as an anonymous function, and ‘y’ needs to be the same size as ‘c’. Try this: erro...

ungefär 15 timmar ago | 0

Answered
plotting a polinomial fraction over a strict range
I do not have the DSP System Toolbox, so I do not have tfplot. Try this instead: q=[1 1]; d=[1 1 1]; x=0:0.001:3; trf ...

ungefär 16 timmar ago | 0

Answered
Finding points with same y-value on a graph.
Try this: x = [2,4,7,9,10,14]; y = [5,10,15,14,12,3]; new_y_value = 12.5 [~,idx] = max(y); newx(1) = interp1(y(1:idx), x(...

ungefär 17 timmar ago | 0

Answered
I want to do the correlation of the following two plots
Going back to using my code (because it is easier to work with): Ts=1/200e6; t=Ts:Ts:0.00005; y=[ones(1,2000) zeros(1,8000...

ungefär 18 timmar ago | 1

| accepted

Answered
system of 3 equation with 3 unknown, with two 2nd order equation
The resuillts are strictly numerical (not containing symbolic variables), so use vpasolve instead of solve: syms QV3 QV2 QVl ...

ungefär 18 timmar ago | 0

| accepted

Answered
how to solve this complex equation in matlab?
Try this: syms theta gama Eqn = exp(pi/4*i)*(5+15i)+exp(i*theta)*(25+5i) == 40+exp(i*gama)*(-10+20i); [theta,gama] = vpasol...

en dag ago | 0

Answered
removing all rows with duplicate information in two columns
Try this: a=[1 2 3 4 5; 1 3 4 5 6; 1 2 3 5 5]; [~,~,idx] = unique(a(:,[1 5]),'rows'); tally = accumarray(idx,(1:numel(idx))....

en dag ago | 0

| accepted

Answered
Genetic algorithm plot diagram display
It is generally necessary to write your own code to save specific aspects of the ga output. It may be best to adapt the code ...

en dag ago | 0

Answered
How to delete a whole table in the matlab?
tablename = [];

en dag ago | 1

| accepted

Answered
How can I separate the arrays when making a table?
Try this: n = 5; A = rand(n,1); B = rand(n,5); T = array2table([A, B]) That should do what you want.

en dag ago | 1

| accepted

Answered
how to combine date and time
In theory at least, datetime should be able to do this seamlessly using the timeofday function for the seconds. In practice, it...

2 dagar ago | 0

Answered
What am I doing wrong? Matrix operators
If you want to raaise the elements of a matrix to a power, use element-wise exponentiation with the dot operator: .^ and see: Ar...

2 dagar ago | 0

Answered
I can't plot a function I created with respect for time
You need to code it as an anonymous function. See Anonymous Functions for details. Specifically: x = @(t) X.*(exp(-Zeta.*...

2 dagar ago | 0

Answered
Error when solving system of equations with ode45 in MATLAB R2019b
The system contains only two derivatives, and . It appears that ‘u’ and ‘z’ are either functions that need to be evaluated, or...

3 dagar ago | 0

Answered
How to plot a function that relies on another function?
Since ‘A’ is a function, it must be evaluated in order to use its results. Try this: A = @(y) y*2; X = @(y) A(y)+10; f...

3 dagar ago | 0

| accepted

Answered
How to make this signal linear
If you want to eliminate the low-frequency parabolic(?) trend, the easiest way is to use a digital filter: signal_2 = load('si...

4 dagar ago | 0

| accepted

Answered
Designing IIR Butterworth filter (pass band)
Yes. Just define the order as 5. There are different design functions in the Signal Processing Toolbox (butter that I have a...

4 dagar ago | 0

Answered
Play 2 wav files after each other
Use the playblocking function to get them to play the way you want them. [y1, Fs1] = audioread('file1.wav'); %this file i...

5 dagar ago | 1

Answered
I have a function which is ranged from 0 microseconds to 50 microseconds. I just want to plot its exact copies from 0to50 microsecond,50 to 100microseconds,100 to 150 and so on
Try this: Ts=1/200e6; t=Ts:Ts:0.00005; y=[ones(1,2000) zeros(1,8000)]; x=sin(1256e6*t + 2198e10*t.^2); z=x.^y; NR = ...

5 dagar ago | 1

| accepted

Answered
How to condense a plot with a shorter x-axis?
Divide the x-axis vector by max(x), assuming ‘x’ is the x-axis vector. That will re-scale it without losing any information.

5 dagar ago | 0

Answered
How to avoid a for loop in functions?
Use ‘logical indexing’ and anonymous functions to eliminate the for loop and the if block: PsolWB1 = @(press) (973.-(70400./(1...

6 dagar ago | 0

| accepted

Answered
fsolve for non linear equation
One problem is that you called fsolve inside the function. That is not appropriate. The other is that you use global variables...

6 dagar ago | 0

Answered
power law fit to find exponent
I would do this (no Toolboxes required): x = linspace(0, 5, 50); % Create Data y = x.^pi ...

6 dagar ago | 0

Answered
Definite integral without symbolic variables
Create ‘fun’ as an anonymous function, then use the integral function: fun = @(z) (G1 + G2 - 2*cos(k*L1/2) * G0) .* sin(k*(L2/...

6 dagar ago | 0

Answered
kinetic energy of the wind (u and v vectors)
Apparently, ‘h’, ‘u’, and ‘v’ are vectors of the same dimensions. One approach is to code the function as an anonymous functi...

6 dagar ago | 0

| accepted

Answered
how to plot euler formula in matlab?
The plot function plots lines between points. You have only one point, so if you change the plot call to: y = exp(100*i*pi) ...

6 dagar ago | 0

| accepted

Answered
Please help me understand the use of dot operator
The dot operator, used with multiplication, division, and exponentiation, creates element-wise oiperations. See Array vs. Matri...

6 dagar ago | 1

| accepted

Answered
How to sort the rows of an array according to another vector?
Try this: D=[1 1 0 1 0 1; 4 6 7 8 9 9; 1 1 1 2 3 4]; b=[2 44 0]; [bb,idx] = sort(b,'descend'); Out = D(idx,:) producing: ...

6 dagar ago | 0

| accepted

Load more