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. Time Zone: UTC-7 (Standard); UTC-6 (Daylight Savings/Summer)

Statistics

All
  • Scavenger Finisher
  • Most Accepted 2023
  • Most Accepted 2022
  • Solver
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • Most Accepted 2021
  • Revival Level 3
  • First Submission
  • Grand Master
  • 36 Month Streak
  • Thankful Level 4

View badges

Content Feed

Answered
How to do fft of a csv file to plot amplitude spectrum
See the documentation for both fft and nufft. One of those should apply to your problem. Another optioon is the pspectrum fu...

ongeveer 8 uur ago | 0

Answered
Parameter estimation of SEIHRDBP model
The time values are incorrect. The complete table of those values should be — Date Infected Death ____ ___...

ongeveer 9 uur ago | 0

Answered
Fitting an custom equasion where i only want to optimize specific parameters
You would need to supply pre-determined values for ‘sigk’, ‘h1’, ‘g1’, and ‘Dwir’ if you have them (you have already calculated ...

1 dag ago | 1

Answered
Grid in MIMO nyquist diagram
I am not certain what you want to do or how much of the documentation you have explored. Most of the Control System Toolbox a...

2 dagen ago | 1

Answered
Fittype issue: unrealistic results and problems with upper and lower bounds
The bounds may not be set correctly. Note that while ‘a’ is supposed to be between 0.1 and 1, your bounds for it are between 10...

3 dagen ago | 0

| accepted

Answered
Parameter estimation of SEIHRDBP model
Thank you for quoting my code! The problem was here: c0=theta(end-3:end); use this instead: c0=theta(end-7:end); Since m...

3 dagen ago | 0

| accepted

Answered
unable to plot semilogy properly
The easiest way to solve that is to plot each curve on its own y-axis using the yyaxis function — % QPSK M = 8; k = log2(M)...

3 dagen ago | 0

| accepted

Answered
datetime don't displays the correct order
The 'InputFormat' and 'Format' name-value pairs are not the same. You need to specify them separately — aaa=datetime(dataa,...

3 dagen ago | 0

| accepted

Answered
How to get daily max, min, and mean from a timetable?
Your groupsummary call is correct, except for not putting the data variables in square brackets (or curly braces). With that...

3 dagen ago | 0

| accepted

Answered
I'm unsure of why there is an error on F=@x
The statement order is reversed from what it should be — f=@(x)exp(-0.5*x)*(4-x)-2; df=@(x)exp(-0.5*x)*(-3+0.5*x); Xs = n...

4 dagen ago | 1

| accepted

Answered
small floating point has been considred as zero value!
Your code works correctly when I run it here — x=0.16 if x>0.1 d=1 else d=0 end d .

4 dagen ago | 0

Answered
Find Area under the curve as a non negative
It would help to have the data. Perhaps selecting everything with both x and y coordinates greater than zero, and then integr...

4 dagen ago | 0

| accepted

Answered
Transparency in scatter plot
It would help to have representative data. I suspect the vector you are using as ‘C’ has very low positive values (perhaps on ...

4 dagen ago | 0

Answered
readtable() ignores variable names and loses data when "extra" cells contain values
‘How can I tell readtable() to ignore any extraneous cells to the right of the main data that starts in A1?’ Without a file t...

4 dagen ago | 0

Answered
Importing data from outside matlab directory?
Probably the easiest way is to use the fullfile function to generate the complete path to the file. To access other files in th...

5 dagen ago | 0

Answered
Acceleration of code by replacing two nested for-loops
This could be difficult with your code because of the multidimensional nature of ‘B’, however the usual approach is to create m...

5 dagen ago | 0

Answered
Viewing a house in MATLAB
The walls and roof needed duplicates with some offsets to plot correctly. Other than that, the patch arguments are set up to be...

5 dagen ago | 0

| accepted

Answered
How to develop "a model" from a given m-file of regression analysis?
If your data are the same as in your earlier post, you can get all that information from the Curve Fitting Toolbox result. Th...

5 dagen ago | 2

| accepted

Answered
how to plot a diagram that includes many excel data?
One approach is to read the files in to separate cell arrays, then vertically concatenate them, and then choose the ‘Absolute T...

6 dagen ago | 0

| accepted

Answered
Replace Before A Specific Character
Assuming that you want to replace it with '9999' — diffStr="4026y 4 mo 13d 9h 26m 20.145s" val = num2str(9999) diffStr = reg...

6 dagen ago | 0

Answered
How can I plot the linear variation?
Calculating the llinear regression was straightforward, however calculating and plotting the regression plane was something of a...

6 dagen ago | 1

| accepted

Answered
Creating multiple cylinders in different coordinates
Perhaps this — [X,Y,Z] = cylinder(1,20); cm = colormap(turbo(10)); figure hold on for k = 1:10 ofst = randi(9,2);...

7 dagen ago | 0

| accepted

Answered
How to find corresponding frequencies for frequency magnitudes in FFT analysis
I am not certain what you want from these calculations. I used my own fft call (since I found it difficult to understand your...

7 dagen ago | 0

| accepted

Answered
Curve fitter, how to start?
Try this — T1 = readtable('data.xlsx'); Var1 = str2double(cellfun(@(x)regexp(x, '\d*', 'match'), T1.Var1)); T1 = removevars(...

8 dagen ago | 0

| accepted

Answered
Table not aligning properly
Use fprintf instead of disp — ThePriceisRightWheel function ThePriceisRightWheel() clc clear RunTotal = 100000; Cont...

8 dagen ago | 0

Answered
Showing information on a plot
Retrieving and showing all that information is not straightforward, however it is definitely possible. Use stepinfo to get the ...

9 dagen ago | 0

| accepted

Answered
How do I extract a difit from a binary string
Tweaking your code — A=45; B=dec2bin(A) lb=length(B); C=strings(lb,1); % D=convertCharsToStrings(B); for i=1:lb C(i)...

9 dagen ago | 0

| accepted

Answered
Deleting 3rd column of all cell double inside a variable than combine the data together
I limited the run to the first 20 ‘Pr_error_2’ cells because the full set required more time than the 55 second limit here permi...

9 dagen ago | 0

| accepted

Answered
How to plot a function using a variable that is calculated over a range?
When in doubt, vectorise every multiplication, exponention, and division. With those changes (and nothing else) it works — ...

10 dagen ago | 1

| accepted

Answered
Ones function printing out
The fprintf call will execute and print even if there is a semicolon at the end of that call. X1 = rand(3,5); fprintf('Size ...

10 dagen ago | 0

Load more