Community Profile

photo

Star Strider


11.254 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
Adding a column to a datafile
Try this: datafile = [3750 555 10266 3750 555 0 3750 555 0 3750 555 0 3750...

alrededor de 2 horas ago | 0

Answered
Undefined function or variable 'fixedWidthImportOptions'.
It’s an options structure to be used with the readtable (link) function. See the documentation section on Examples (link). H...

alrededor de 3 horas ago | 0

Answered
how to generate a matrix with 2 columns and changeable number of rows
use the meshgrid (link) function (or optionally ndgrid (link)): step = 0.4; v = 0 :step : 3*step; [X,Y] = meshgrid(v); OutM...

alrededor de 7 horas ago | 0

Answered
How do I create a local function using a string?
‘I am attempting to create a local function from a string.’ Since you are starting from a string, use the str2func (link) funct...

alrededor de 8 horas ago | 0

Answered
Making Different Length Vector Same Length
One approach: strainNew = interp1((1:numel(strain)), strain, linspace(1, numel(strain), numel(stress)), 'linear')'; figure ...

alrededor de 10 horas ago | 0

| accepted

Answered
How to increment from 1 to 0.0000000001 (9 zeros) in 11 rows, 1 column (divide by 10 each time)
Use the logspace (link) function: v = logspace(0, -9, 10)' to get: v = 1.000000000000000 0.100000000000000 0.01...

alrededor de 12 horas ago | 2

Answered
symbolic derivative with constant output
You would likely need to do something like this: function y = evalDeriv(fcn,x) if nargin(fcn) == 0 y=fcn(); ...

alrededor de 12 horas ago | 0

Answered
For loop with linspcace - for a multiple plots?
Use nested loops: beta= 2 : 0.1 : 6; omega = 2*pi*2856; Qo = 7E+4 : 500 : 1.2E+5; U_in1 = 1; y1 = 0; alfa = (2*beta)./(1+...

alrededor de 15 horas ago | 1

Answered
How to take the Fourier transform of a speech signal?
See the documentation on the fft (link) and spectrogram (link) functions.

alrededor de 16 horas ago | 0

Answered
Reducing the order of Transfer function
If you have not already used the minreal (link) function, see if it will reduce the order. Beyond that, I have no specific su...

alrededor de 16 horas ago | 0

Answered
Optimize objective function with a random value?
It seems that you are doing a nonlinear parameter estimation problem, fitting your model to data, rather than an actual optimiza...

1 día ago | 0

Answered
Trendline with Slope of zero
see if the lsline (link) or similar functions (linked to in and at the end of that page) will do what you want.

1 día ago | 0

Answered
Frequency analysis of circadian data
I believe your table and mine are probably similar. See if: Lidx = abs(CoreTempData.tempFiltAverage - mean(CoreTempData.tem...

1 día ago | 0

Answered
time string into seconds
See if the seconds (link) function will do what you want. Your times need to be a duration (link) array.

1 día ago | 0

Answered
How to correct ode45 errors?
First, do not use global variables! Second, you need to declare your function correctly, and pass the extra parameters to it...

1 día ago | 0

Answered
symbolic definition disabled in MATLAB r2017b
Run these lines from your Command Window or a script: restoredefaultpath rehash toolboxcache and see if that fixes the pro...

1 día ago | 0

Answered
Convert sound of heart beat into beats per minute
I worked on that for a while, including attempting wavelet denoising, without success. The heartbeats are easily audible, howev...

2 días ago | 0

Answered
How to define and plot a piecewise time dependent function
The double logic operators (&&, ||) are short-circuit operators and operate only on logical values. They will not work in your ...

2 días ago | 0

| accepted

Answered
I keep getting the error "subscript must either be real positive integers or logicals" even when I place an 'if' statement
‘I thought that my ' if ' loop would have solved that issue, but it does not seem to be working.’ It is working in the if block...

3 días ago | 0

| accepted

Answered
Error in fmincon-NaN values
The usual method MATLAB toolboxes use to deal with NaN values in data is to omit the entire row that has a NaN value in any colu...

3 días ago | 0

Answered
bar graph doesn't show whole data
Try this: bar(imp_2d_7_f) xtv = get(gca, 'XTick'); xtl = {'ALGO','ALIC','ALRT','ANKR','BRAZ','CAS1','CCJ2','CKIS','MAS1','MA...

3 días ago | 1

| accepted

Answered
Parameter estimation in ODE45.
I am not certain what you are doing. One approach is in Monod kinetics and curve fitting (link).

3 días ago | 0

Answered
Changing the refline name in the legend
Try this: figure scatter(rand(1,10), rand(1,10), 's', 'DisplayName','Validation') hold on scatter(rand(1,10), rand(1,10), '...

3 días ago | 0

Answered
Index exceeds the number of array elements (1)
This line is throwing the error: RMIN = RMIN(NX*NY); Since ‘RMIN’ is a scalar, it seems that you might be missing a multiplic...

3 días ago | 1

Answered
Is it possible to assign the constant value of a function handle to a variable?
If you want to use the feval (link) function, yes: g = @() 1; B = feval(g) producing: B = 1 There may also be other...

3 días ago | 1

| accepted

Answered
Matrix multiplication and addition
If I understand correctly what you want to do, this works: Result = sum(b(1:4,:) * a(:,6)); producing: Result = 760 ...

3 días ago | 0

Answered
Labelling peaks on a graph
Use the findpeaks (link) or islocalmax (link) function, and the text (link) function.

4 días ago | 1

| accepted

Answered
Surface plot form 1d data
We have absolutely no idea what result you are expecting. Try this: %% 1D line plot x = linspace(0,1000,1000); C = @(...

4 días ago | 0

Answered
Ignore text in a txt file
It depends on the function you are using to read them. In the textscan (link) and other functions that use textscan, they are ...

4 días ago | 0

Answered
Having trouble solving system of equations
Use the correct syntax for solve, and use the vpa function to get numeric results: syms c1 c2 [C1,C2] = solve(c1==18*c1-1200+...

4 días ago | 1

Load more