Community Profile

photo

Star Strider


Last seen: Today Attivo dal 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

Visualizza badge

Content Feed

Risposto
Error using tf The values of the "Numerator" and "Denominator" properties must be row vectors or cell arrays of row vectors,
% clear % clc % close all % Given % rise time t_r <= 0.5sec % percent overshoot M_p <= 13% % settling time t_s <= 8sec...

circa 10 ore fa | 0

Risposto
Patch function doesnt shade the second plot.
One of those vectors in the second plot likely has at least one NaN value. Try something like this — meanNDtest = fillmissi...

circa 12 ore fa | 1

| accettato

Risposto
How can I display numbers in scientific notation but in magnitudes of 3 and to 3 significant digits?
I wrote a little utility function for my own use a while back to do that. Try this — engstr = @(x) [x(:).*10.^(-3*floor(log...

circa 17 ore fa | 0

Risposto
I am getting incorrect FFT values
The 1.86 value is correct. Look at the time domain plot — %FFT T=0.01; %cuz the time interval is 0,01. You can see in "t" ...

circa 20 ore fa | 0

| accettato

Risposto
Solve a system of 3 second order equations
This should get you started — syms c_1 c_2 k_1 k_2 k_n k_nl J_1 J_2 J_n theta_1(t) theta_2(t) theta_n(t) theta_out(t) t Y d1...

circa 21 ore fa | 0

Risposto
mesh or surf from x y z coordinates
I am not certain what you want. One approach — LD = load(websave('swarm','https://www.mathworks.com/matlabcentral/answers/u...

circa 22 ore fa | 0

| accettato

Risposto
Fill light gray color between two horizontal lines in a plot?
To plot a ‘dash-dot¹ line requires a slightly different LineStyle definition — x=[1:10]; y=[1:10]; figure(1) plot(x,y,'b') ...

1 giorno fa | 0

Risposto
Add header to legend columns
‘The solution in an opaque manner could be working out for me perhaps, how can I do this?’ The default background colour is 'no...

1 giorno fa | 0

Risposto
I Want to solve system of three differential equations numerically. How can i solve it with ode45, or are there any other ways?
syms v1(t) y1(t) y2(t) v2(t) a2(t) phi(t) L r A B C D E F G H I J beta Omega(t) Omegaac(t) omega(t) omegaac(t) Y t sympref('...

2 giorni fa | 0

| accettato

Risposto
import data from csv and plot it
I opened it in Excel, did a straightforward manual copy-paste to Notebook, and saved it to a text file (that I uploaded here). ...

2 giorni fa | 1

| accettato

Risposto
x values when taking a numerical derivative
‘I think (correct me if I'm wrong) this can be done by diff(y)./diff(x)’ Not actually wrong, simply mistaken with respect to ...

2 giorni fa | 0

| accettato

Risposto
Plotting surface tangent to surface plot
The code defines ‘x’ as a scalar: x=linspace(-9,0.5,1); with one element equal to 0.5. That creates ‘X’ and ‘Y’ as vectors...

2 giorni fa | 0

Risposto
How do I change a date in a cell into three cells in MatLab xlsx file?
After using readtable to import the Excel file, try something like this — T1 = table(datetime('now') + days(0:4).', rand(5,1),...

3 giorni fa | 1

| accettato

Risposto
How can i find the co-ordinates of a point where the slop is -1 in below graph ?
Try this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1285050/cmos.txt', 'VariableNamingRu...

3 giorni fa | 2

| accettato

Risposto
Improve part of code using a loop
One approach — date_time = (datetime('01-Jan-2023') : caldays(1) : datetime('31-Dec-2023')).'; Values = randn(numel(date_time...

4 giorni fa | 0

| accettato

Risposto
How to plot 2 columns (one is population the other is years) in a linear graph
This is difficult without the Excel file. Taking a wild guess: plot(Population.years, Population.Population) alternatively...

4 giorni fa | 0

Risposto
Unclear periodicity output with daily temperature dataset using periodogram
I have no idea what temperature is being measured. I would expect environmental temperatures to have a significantly wider rang...

4 giorni fa | 0

Risposto
Why is my FFT diagram has a slope approaching to zero?
It looks correct to me. I made three changes: indexing into the table and references to it, subtracted the mean from ‘S’ since ...

5 giorni fa | 0

| accettato

Risposto
Filtering between frequency range
The function you use depends on how you want to filter them. The filtering functions (includijng filtfilt) operate column-wise ...

5 giorni fa | 0

| accettato

Risposto
Adding scatter points to a contour plot
‘Highest’ usually implies one value, not 67, and without your data (the (67x67) matrix) and understanding what the ‘highest 67 v...

5 giorni fa | 0

Risposto
For each peak, I would like to calculate the delta (shown in image) for the plot in the script at each threshold level in a table.
@Rufus Adjetey — Try my code — X = [0.0318400000000000,0.0368000000000000,0.0417600000000000,0.0467200000000000,0.0516800000...

6 giorni fa | 0

| accettato

Risposto
How to locate X value for a given Y value
In the absence of the data, getting an independent variable valuex ‘x’ from an dependent variable value ‘y’ is relatively straig...

6 giorni fa | 0

Risposto
How do I make a bar graph from uneven arrays without adding zeros to the end of the smaller array?
I am not certain what you want. This approach creates a NaN matrix with the column length of the larger vector, writes the or...

7 giorni fa | 0

| accettato

Risposto
Convenient way to filter sinusoidal noise from decay data?
If you want to use a frequency-selective filter, first do a fft of the data to determine the frequency components, then use the ...

8 giorni fa | 0

Risposto
How to read Brimrose NIR spectral data
I have no idea what is supposed to be in that file. It appears to be a binary file, so experiment with the fread function. A...

8 giorni fa | 0

Risposto
How can I get a smooth curve in MATLAB?
One option is to interpolate to a finer ‘x’ vecttor, and then use a method such as 'pchip', 'spline', 'makima', or others to do ...

8 giorni fa | 0

| accettato

Risposto
Cannot add shaded confidence intervals?
We do not have your data. The fliplr function will not produce the desired result with column data. I prefer to use the patc...

8 giorni fa | 0

| accettato

Risposto
How to use the data from a .mat file to make a graphic?
Use the load function to ‘read’ the .mat file. (I always load into a variable as a structure of the .mat file contents so that ...

9 giorni fa | 0

| accettato

Risposto
A way to write "if x is in y matrix do this"
It depends what the random number is, and how you define ‘y’ . The ismember function works for exact comparisons. The ismember...

9 giorni fa | 0

| accettato

Risposto
How can I delete a specific row from a timetable?
Try something like this — LD = load(websave('TimeTable','https://www.mathworks.com/matlabcentral/answers/uploaded_files/127871...

9 giorni fa | 1

| accettato

Carica altro