Community Profile

photo

Star Strider


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

統計

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

バッジを表示

Content Feed

表示方法

回答済み
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...

約6時間 前 | 0

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

約21時間 前 | 0

| 採用済み

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

1日 前 | 0

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

1日 前 | 0

| 採用済み

回答済み
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)...

1日 前 | 0

| 採用済み

回答済み
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...

1日 前 | 0

| 採用済み

回答済み
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 — ...

3日 前 | 1

| 採用済み

回答済み
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 ...

3日 前 | 0

回答済み
generate average numbers between two numbers inside a vector
One approach — V = [3.4789; 0; 0; 3.3535; 0; 0; 3.2398; 3.2263; 0; 0; 0; 3.0846; 0; 0; 2.9815; 0; 2.9430; 0; 2.9055]; r0 = [2...

3日 前 | 0

| 採用済み

回答済み
How to add a legend for multiple figures with horizontal and south location
I am not certain what you want. Try this — % Please how can add one legends for the subplots. I want the legend % location...

3日 前 | 0

| 採用済み

回答済み
How to fix the error
The error message is clear. Put the function at the end of the file and the code works — % Set random seed value rng(123)...

4日 前 | 0

回答済み
Plotting spectrograph from spectrum analyzer data
Yiour data needed a bit of tweaking. Tehe times in the ‘TimeData’ matrix are contiguous, so they can be converted into a vector...

4日 前 | 1

| 採用済み

回答済み
Biphasic Pulse signal with FFT
The problem was that ‘wholeSignal’ had 60 more elements than ‘t’ so I artificially shortened it: wholeSignal = wholeSignal(1:n...

5日 前 | 0

| 採用済み

回答済み
How to count how often a variable returns to zero and then increases from zero
One method to find the first instance of a zero value is to use the strfind function. You can use it again to determine the ind...

6日 前 | 0

回答済み
How do I compute averages for NOAA SST data?
The easiest way to do this is to use the accumarray function — T1 = readtable('ersst5.nino.mt...-20.ascii.csv', 'VariableNami...

6日 前 | 0

回答済み
How can i calculate the area under two curves that intersect?
Integrate them using trapz then do what you want with the results (keep them as they are, add them, add their absolute values, ...

7日 前 | 1

| 採用済み

回答済み
The legend option called interpreter latex does not display the latex symbols correctly
You need to put dollar signs ($) around the string you send to the LaTeX interpreter — plot(1:10,1:10,'DisplayName','$\eta_i$'...

7日 前 | 1

| 採用済み

回答済み
Transfer function extraction from frequency response
You will need to use the System Identification Toolbox for this. Then: ResponseData = mag.*exp(1j*phase); data = idfrd(Res...

7日 前 | 0

| 採用済み

回答済み
how to use the hanning window to smooth the photon signal
That appears to be some sort of spectrum. I am not certain what you want to do with it, however windowing it is not likely to p...

8日 前 | 0

回答済み
how to plot table to line graph with dots ?
There are easier ways to import the table using detectImportOptions, however since it exists as posted, try this — x = str2dou...

8日 前 | 1

| 採用済み

回答済み
Plotting several plots of respective ranges from an excel file into one single plot
Perhaps this — opts = detectImportOptions('tempDataTrollhFlygpl.xlsx', 'VariableNamingRule','preserve', 'HeaderLines',9); opt...

8日 前 | 1

| 採用済み

回答済み
scatteredInterpolant using a matrix, F = scatteredInterpolant(x,y,v) form
‘Input data point values have invalid dimension. The data must be specified in column-vector format.’ This holds when you ini...

8日 前 | 0

回答済み
Find Coefficients of an equation
Using two independent variables is relatively straightforward. You need to concatenate them, then refer to them individually i...

9日 前 | 0

回答済み
Can someone help me solve this different equation on matlab?
Perhaps this — % 1/r * d/dr(r*dS/dr) + c1 - c2 syms r S(r) c1 c2 S0 DS0 Eqn = 1/r * diff(r*diff(S),r) + c1 - c2 S = dsolv...

9日 前 | 0

回答済み
How can i 3d plot this table in matlab?
Try this — A1 = readmatrix('cc.csv'); x = A1(1,2:end); y = A1(2:end,1); z = A1(2:end,2:end); figure surf(x,y,z, 'EdgeCo...

9日 前 | 0

| 採用済み

回答済み
Why can't I run my code? (tfest function)
Run this from a script or your Command Window: which tfest -all It should give you this identical result. If it shows anyt...

9日 前 | 0

回答済み
To find angular frequency and wave vector for time series data
From what I’ve been able to discover, the ‘minimum vairance method’ is a heirarchical clustering approach. MATLAB has a few way...

10日 前 | 0

回答済み
Dealing data with text and numerical in .txt file
I am not certain what you intend by ‘visualize’. Perhaps this — T1 = readtable('M I T 2024 02 17.txt', 'Delimiter',{',',':'...

10日 前 | 0

回答済み
Compare rows from different columns
One approach — A = randi(50,10,2) Col_2_Larger = A(:,2) > A(:,1) ColNr = find(Col_2_Larger); fprintf('Col 2 larger in row...

10日 前 | 0

| 採用済み

回答済み
How can I ensure that the initial solution (x0) for fsolve does not result in Inf or NaN values?
The approach I use (if possible) is to plot the function first. Most of the time, it is possible to plot it in one or two dimen...

10日 前 | 0

さらに読み込む