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

View badges

Content Feed

Answered
Is it possible to create a surface plot from scattered points?
Another approach — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1055560/Datas_xymises.txt', ...

1 hour ago | 0

Answered
FFT giving undesired answer
‘For reference, the code below currently gives that the vertGridSpacing is 59.94 pixels, while the true vertGridSpacing should b...

8 hours ago | 0

| accepted

Answered
how do i read just the header in a csv file and write them into a file
One approach — header='field1,field2,field3,field4,field5' headerstring = string(strsplit(header,',')).' .

10 hours ago | 0

| accepted

Answered
extract data from one day from a timetable
Try something like this — LD = load('ask_matlab.mat'); TT1 = LD.ans; RT = TT1.Properties.RowTimes; VN = TT1.Properties.Vari...

10 hours ago | 0

Answered
Unrecognized function or variable 't'.
Just befor the ‘u’ assignment, insert these assignments: tmax = 10; % Maximum Time t...

11 hours ago | 0

Answered
How to select a certain range in the middle of my data?
There are different ways to do this. One approach — ReadDataX = 0:0.5:10 ReadDataY = randi(9,size(ReadDataX)) Lv = ReadDa...

11 hours ago | 1

| accepted

Answered
How to take data from multiple variables and store them in one variable?
I am not certain what you want, however one option would be a cell array — v1 = rand(3) v2 = 'This is Variable #2' v3 = exp(...

13 hours ago | 0

Answered
to build a table with XYZ values
In order to save them to a file, use the (:) operator or the reshape function to create column vectors from the matrices. Conca...

1 day ago | 0

Answered
Interpolating points in a 3D space with one line
Try something like this — rpm = rand(5,1); dosage = rand(5,1)*0.1; mass_of_leaves = rand(5,1); B = [dosage mass_of_leaves...

1 day ago | 0

| accepted

Answered
How do I plot a curve in MATLAB and see its characteristics response like overshoot, settling time, etc using Voltage vs time graph from excel.
Use readtable or readmatrix to import the data, then use the System Identification Toolbox functions, specifically iddata, ssest...

1 day ago | 0

Answered
How to apply moving harmonic average on an array?
If you want to calculate it as described in the harmmean More About section, perhaps something like this would work — movhm = ...

2 days ago | 1

Answered
Im trying to plot two functions over a range
There are several missing operators (that I assume should be multiplication operators), and all the applidable operators should ...

2 days ago | 1

| accepted

Answered
Find the width of a peak
Try something like this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1053640/j1%20a30.csv'...

3 days ago | 1

| accepted

Answered
Plot an equation (sigma operator)
Try soemthing like this — n=3; kv=0:floor(n/2); xv=-2:0.1:2; H = zeros(size(xv)); Hv = zeros(size(xv)); for k2 = 1:numel...

3 days ago | 0

| accepted

Answered
Solve the system of three equations and three unknowns
Solve the system symbolically, then plug in the various values for , , and to get values for , , and — syms A B C D E x y z ...

4 days ago | 0

Answered
Wrong Legend Sign Marker
I am not able to run the code so I cannot test this, however one approach could be: legend([a1(1), a3(1) a4(1)], 'Fiducial Mar...

5 days ago | 1

| accepted

Answered
Readtable() Skipps last rows of csv
If you are using the unique function before writing the output file, it could be deleting several entries. Also, the correct ap...

5 days ago | 0

| accepted

Answered
Why 'NaT' (class: datetime) does not work with find function?
Use the isnat function to test for it. .

5 days ago | 0

| accepted

Answered
My code won't run, error message :Unrecognized function or variable 'ss'. Error in Q4_109 (line 19) Sys=ss(A,B,C,D);
If you are getting an error that MATLAB cannot find the ss function, then you need to license and install the Control System Too...

5 days ago | 1

Answered
Very basic question about fir1 command
Probably something like this — t=0:1/500:0.3; n=cos(2*pi*10*t) + sin(2*pi*50*t); Fs = 500; Fn = Fs/2; b = fir1(32, 25/Fn);...

5 days ago | 0

| accepted

Answered
Can someone please help me plot a Voigt function?
The Voigt profile appears to be slightly challenging to code. The File Exchange has a number of entries for Voigt.

5 days ago | 0

Answered
Plot legend in a bar graph
hFig = figure(1); Month = {'April'; 'May'; 'June'; 'July'; 'August'; 'September'; 'October'; 'November'; 'December';'January'...

5 days ago | 1

| accepted

Answered
How can I get the mean data from under the graphs?
To isolate the regions around the peaks, do something like this — x = linspace(0, 150, 500); ...

5 days ago | 0

| accepted

Answered
How to save data in csv format as output data?
That is not the appropriate way to do the conversion. See my Answer to your previous post.

7 days ago | 0

Answered
How to splits the number into day, hour, minute and second format?
Maybe I’m mising something, however when I last checked, there are not 37 hours in a day or 61 minutes in an hour! Try someth...

7 days ago | 1

Answered
Error in function interp1: Sample points must be unique.
I looked through the code, however I do not see that you ever actually created a timetable object (introduced in R2016b). The b...

7 days ago | 0

Answered
Error using / Matrix dimensions must agree
All the operations in ‘phi’ need to be vectorised — r=linspace(-180,180,360); t=linspace(-180,180,360); [R,T]=meshgrid(r,t);...

7 days ago | 0

Answered
Extract sensorvalues from string with units
See the documentation section on Remove Prefix or Suffix Characters From Variables — type('Test 2020 06 28.csv') ...

7 days ago | 0

| accepted

Answered
Detect increasing or decreasing depth
Assuming the data are contaminated with broadband (rather than band-limited) noise, the different columns are observations and e...

7 days ago | 1

| accepted

Answered
how to put range for findpeaks function
One approach f = linspace(0, 25, 250).'; % Frequency Vector data = exp(-0.1*f) .* sin(2*pi*f*...

7 days ago | 1

| accepted

Load more