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 2022
  • Most Accepted 2021
  • Solver
  • Personal Best Downloads Level 2
  • 5-Star Galaxy Level 3
  • Revival Level 3
  • First Submission
  • Grand Master
  • 36 Month Streak
  • Thankful Level 4
  • Knowledgeable Level 5

View badges

Content Feed

Answered
how to plot heat map with a 2d graph?
That looks like a surf plot: figure surf(X, Y, Z) colormap(turbo) colorbar grid on view(0,90) with perhaps a plot3 call ...

27 minutes ago | 0

Answered
Directed transfer function (DTF) calculation for EEG data
The Wikipedia article on Brain connectivity estimators provides a llink to HERMES that apparently can be downloaded (I have no r...

21 hours ago | 0

Answered
add text to the axis
Perhaps this — t = 0:24; y = rand(3,25); figure plot(t, y) grid text([13 6 18], zeros(1,3), {'noon','sunrise','sunset'}...

2 days ago | 0

| accepted

Answered
Error with ode45 in line 89. Trying to use ode 45 to give data on a 4x4 state space matrix
I am not exactly certain what you want to do. This is my best effort to make sense of it — x1_0=1; v1_0=1; x2_0=0; v2_...

2 days ago | 0

Answered
Extract plot statistics for a specific range
I don’t have the Curve Fitting Toolbox, however looking at the documentation for the datastats function, one option would be: ...

3 days ago | 1

Answered
Why do I get the error "Subscript indices must either be real positive integers or logicals." ?
Wioth the additional multiplicationo operators in ‘dYdx(6)’ and ‘dYdx(8)’ it appears to run without error — %define space f...

3 days ago | 0

Answered
Convert cell array to filename
See: Access Data in Cell Array

4 days ago | 0

Answered
update the column headng by readin the excel file
If you want the variable names, first: T1 = readtable('YourFile.xlsx', 'VariableNamingRule','preserve') then: ColumnHeading...

4 days ago | 0

| accepted

Answered
I want to shade the upper region of the four curves and left region of the vertical line
Try something like this — x=0:140; M=(9.88./x)+((0.00044)*x); T=(0.04-(0.0516*(exp(7.442./(x)))))./(1-(exp(7.442./(x)))); R...

4 days ago | 0

| accepted

Answered
Is there a way to use findgroups() so that it is based on order in the matrix instead of alphabetical?
There doesn’t appear to be that option for findgroups. If you only have one vector, the unique function can do thaat using the ...

5 days ago | 1

| accepted

Answered
calculating the difference in dates
Try something like this — T1 = readtable('dates.xlsx', 'VariableNamingRule','preserve') YearMonth = datetime(T1{:,1},T1{:,2},...

5 days ago | 1

| accepted

Answered
Derivative spectra from table, but error appears: Arrays have incompatible sizes for this operation
Use the gradient function instead: dydx = gradient(y,1)./gradient(x,1); The outputs are the same sizes as the arguments. ....

5 days ago | 0

Answered
I require frequency response from transfer function = 1/(s^2+(b/m)*s+k/m) where b= 0.0011, k= 87.88 , m = 0.99 in matlab and i need freq in khz
The tf and bodeplot functions are your friends in this project. Ask them for hellp.

5 days ago | 0

Answered
How do I create a 3D plot using the messgrid command from data within an Excel file?
The meshgrid call is actually not necessary. Try this — T1 = readtable('Epsilon_Prime.xlsx') T1.Var2 = str2double(T1.Var2)...

5 days ago | 0

Answered
how convert field struct in cellarray
See if the struct2cell function will do what you want.

6 days ago | 0

| accepted

Answered
How can i read a .isf file?
See this post on the Tektronix site. It tells how to save the file as a .csv file. After that, use readtable or readmatrix to ...

6 days ago | 0

Answered
How to plot contour lines on MATLAB?
See if contourm will do what you want. (I do not have the Mapping Toolbox since I do not need it for what I do, so I have no ex...

6 days ago | 0

Answered
accelerometer data shows nothing in FFT
Perhaps something like this — data = readmatrix('usb_data_100hz2.17th.txt'); x = data(:,1); y = data(:,2); xstats = [mean...

6 days ago | 0

Answered
Ussing input to read an excel file
There are several options. Without having the file to work with, readtable and readcell could be appropriate. The xlsread fu...

6 days ago | 0

Answered
Need to load a file from an open data set a
Perhaps something like this: file = "C:\Users\Joyfu\Downloads\SOCR-HeightWeight.csv"; A = readmatrix(file) Col1 = A(:,1); ...

7 days ago | 0

| accepted

Answered
Locate values in a matrix
A reasonably general approach would be to use the Signal Processing Toolbox sgolayfilt function to smooth the data (there are oi...

7 days ago | 1

Answered
Peak area through Findpeak
It depends on how you define ‘peak’. LD1 = load('X4.mat'); X4 = LD1.X4; LD2 = load('Y20_4.mat'); Y20_4 = LD2.Y20_4; [pk...

7 days ago | 0

| accepted

Answered
How do I generate numbers from an Exponential Distribution within Min and Max values?
Use the truncate function — pd = makedist('Exponential','mu', 1.5); t = truncate(pd, 0.5, 4.3); r = random(t,10000,1); ...

7 days ago | 1

| accepted

Answered
Confidence bounds in custom equation
I am not certain what your first question actually asks. The way to interpret the confidence limits here would be: a = [0.042...

8 days ago | 0

Answered
I have x of size (15*1) and y of size (14*1) and Z of size (14*1*15). I want to plot x with z at each y?
I am not certain what you want to do. This will plot ‘Z’ at each ‘x’ and ‘y’. It may be necessary for you to use the squeez...

8 days ago | 0

| accepted

Answered
Plot a mean of ten lines of different resolution
It would help to have the actual data. The missing data must be NaN values, since if they were simply blank, they would throw...

9 days ago | 0

| accepted

Answered
Trouble using findpeaks function
I have no idea how you are importing them. The findpeaks function wants real vector data. Try something like this — T1 = r...

10 days ago | 0

Answered
how to add 2nd y-axis on give graph?
See the documentation for yyaxis. It should be all you need.

10 days ago | 1

Answered
Lsqcurvefit - problem with matrix input
Index in position 2 exceeds array bounds. Index must not exceed 1. Check to see how many columns ‘empty’ has. It may only have...

10 days ago | 0

Answered
How can I make ODE15s interpolate a value from a given table on each time step?
That depends on the problem that you want ode15s to solve. As a general rule, the approach is to include an interp1 call, and p...

10 days ago | 0

Load more