Beantwortet
Extract values from a fig file?
Try this — F = openfig('Example.fig'); % Load File & Display Contents Ax = gca; ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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, ...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
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; ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 1

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 2

| akzeptiert

Beantwortet
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)...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 1

Beantwortet
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 ??.

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

etwa 3 Jahre vor | 0

Beantwortet
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,...

etwa 3 Jahre vor | 1

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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/...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

Beantwortet
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...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
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...

etwa 3 Jahre vor | 2

Beantwortet
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 ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
how to consider only the integer part discarding the exponent part
This appears to be a reasonably robust approach — a = [1 23 56]*10^(-9); b = a.*10.^ceil(-log10(abs(a))+1) max_a = max(b) ...

etwa 3 Jahre vor | 0

Beantwortet
digital lowpass filter using Kaiser and Hamming window
Yes, I could. If you want to design one as well, use the fir1 functon. I also recommend the See Also section of the document...

etwa 3 Jahre vor | 0

Beantwortet
lsqcurvefit() moved from Matlab to toolbox?
The lsqucurvefit function has always been in the Optimization Toolbox for as long as I’ve been using MATLAB. You may be referri...

etwa 3 Jahre vor | 0

Beantwortet
FFT from a excel file
EDIT — (1 Jun 2023 at 16:07) The array is table apparently created by readtable. Use cell array indexing (explained below) or ...

etwa 3 Jahre vor | 0

Beantwortet
Appy lsqcurvefit to multiple data sets with multiple parameters
If I understand the problem correctly, and all the data sets contain column vectors and are the same column size (they do not ha...

etwa 3 Jahre vor | 0

Beantwortet
Why does str2double command return NaN? What type of array should I convert into for running fitlm command??
Of course str2double returned NaN for all of them because none of them are strings or character vectors. I suspect there are ...

etwa 3 Jahre vor | 0

| akzeptiert

Beantwortet
Why the nonlinear least square fitted curve is not a curve?
Just for fun, I added a periodic function and a slope to the model — Data=[0.928571429, 0; 0.012118074, 1.5; -0.45000118...

etwa 3 Jahre vor | 0

| akzeptiert

Mehr laden