
Star Strider
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)
統計
Content Feed
Plot data from txt file
If you simply want to aggregate the data in each second and plot them that way, try something like this — Uzp = unzip('Data 2....
約3時間 前 | 0
How to change a variable name without changing the value itself?
Save them as elements of a cell array instead, when you first create them.
約8時間 前 | 1
How can I distinguish from an unfiltered signal an eeg signal from an emg one?
Plotting is straightforward — LD = load('sigtest230504.mat'); s = LD.sig; L = numel(s); Fs = 1E+3; t = linspace(0, L-1, L)...
約11時間 前 | 0
| 採用済み
The FFT plot does not shows up, it is empty
Perhaps: data(isinf(data)) = NaN; data = fillmissing(data, 'linear'); since there may be a NaN or Inf value in ‘data’ that i...
約11時間 前 | 1
Unable to solve the collocation equations -- a singular Jacobian encountered.
Your ‘odefcn’ has a divide-by-zero somewhere, since at x=0, ‘Y(2)’ is NaN, and setting ‘x’ to something greater than 0 ‘Y(2)’ is...
2日 前 | 0
| 採用済み
use readtable and wrong data
Perhaps: T = readtable('Predator_Setting.xlsx','Range','A1:B54', 'VariableNamingRule','preserve') Eartlier versions of readta...
2日 前 | 1
| 採用済み
Deleting spikes and reconstructing background noise
While it is possible to replace the spikes with broadband noise, here I just replaced them with a short sine segment — LD1 = l...
2日 前 | 0
Extract values from a fig file?
Try this — F = openfig('Example.fig'); % Load File & Display Contents Ax = gca; ...
2日 前 | 0
| 採用済み
xticks and yticks with decimal exponents
Use the compose function to create a separate set of tick labels — % My attemot plot(10^(0):10^(3),10^(-8):10^(3)) set(gca, ...
2日 前 | 1
| 採用済み
How to calculate 50% and 66% width of each peak in the data?
Try this — LD = load('matlab.mat'); data = LD.filteredData.'; L = numel(data) Fs = 1000; x = linspace(0, L-1, L).'/Fs; ...
3日 前 | 0
| 採用済み
How to fill the area under the curve ?
I am not certain what result you want with respect to ‘under the plotted curves’. Adjusting that limit (defined here as ‘min(Da...
3日 前 | 0
| 採用済み
HOW TO FFT A NOISY EARTHQUAKE DATA
@Mary Claire — The problem with your data is that they are really noisy (that appears to be thermal or noise) that probably ori...
4日 前 | 1
| 採用済み
HP Filter array size problems in Matlab 2023a
It would help to have the data and the code. There are likely version differences, specifically that the arguments to the mld...
4日 前 | 0
| 採用済み
Storing numbers with lots of decimal places in arrays
Lacking detail as to what the analysis script does or what (if anything) it needs as input, I would put any input variables in a...
4日 前 | 0
i am an electronics student and trying the program for designing the FIR Filter in matlab. i am using the hamming function but it shows error.tried reinstalling same problem%P
The arguments to the MATLAB window functions (all of them) must be integers greater than zero, and ‘n1’ is -61. That is obvious...
4日 前 | 0
How to draw a picture in matlab as below:
That resembles a surfc plot. The contour normally only shows the contour llines, however setting the 'FaceColor' to 'flat' (fro...
5日 前 | 2
Specifically find the first substantial peak in a graph.
Perhaps something like this — x = linspace(1.3, 3.3)*1E+4; yfcn = @(x) x.*exp(-0.00025*x); y = yfcn(x-x(1))/6 + [zeros(1,13)...
5日 前 | 0
I need data points from Labchart file according to stimulus time points in a other channel , how can i get it?
Your data initially appeared to be chaotic when I plotted them, so I took a closer look and found that most of them aere arrange...
5日 前 | 1
How to find the minimum distance from one point to other point ?
@Surendra Ratnu — I thought we covered all of this in How to find angle between a fixed point to multiple point ??.
5日 前 | 0
Ploting the magnitude of the laplace transformed signal against the frequency range
Since you are doing actual numeric calculations, one option is to use matlabFunction to convert ‘X_Laplace’ from a symbolic func...
5日 前 | 0
| 採用済み
How to restart optimization with ga ?
You can save the fittest individuals in each generation during the optimisation, then use the last (or all) of them to re-start ...
5日 前 | 0
Breaking the axis of plots (without external packages etc)
I am not certain what you want, so I decided to give this a shot just out of interest — x = [linspace(0, 10, 11); linspace(20,...
6日 前 | 0
How i can add the color below the figure?
If you are referring to the legend in the figure, it would be easiest to use the 'DisplayName' in every surf call so that the de...
6日 前 | 0
There is an error in call the function file
You need to call ‘fluxfunction’ from a script with specific values for ‘a’ and ‘b’ that already existing in the script workspace...
7日 前 | 0
take a value y of a function y = f(x) giving x.
Use an appropriate interpolation function, such as interp1 or just index into it, depending on what you want to do — x = 0:pi/...
7日 前 | 0
How to flip an ordered X-axis that is half half separated for data?
One approach that changes the x-axis and the data — xv = [1 2 3 4 5 6 7 8 9 10 11 12]; % Independent Vari...
7日 前 | 0
Power spectral density plot converted to sound pressure level
To generate an SPL plot, and assuming compatible units (among other things) — nfft=2048; window = hann(nfft); overlap...
7日 前 | 0
How to extract data from txt file and plot spectogram?
I prefer the pspectrum function for these analyses. See specifically Spectrogram and Reassigned Spectrogram of Chirp for an exa...
7日 前 | 0
| 採用済み
time interpolation of a 3d matrix containing wind speed data
The retime or synchronize would likely be more apporpriate here, however the resample function could work (and interp1 is an o...
7日 前 | 2
How to make a surface in polar coordinates using polar3d?
This takes too long to run here (it took 336.315050 seconds — 00:05:36.315049 — just now on MATLAB Online) however it plots the ...
8日 前 | 0
| 採用済み