Beantwortet
Plotting Level Curves after function
Use the contour function. You can use fcontour, however it will not be possible to export its results to plot with contour. ...

mehr als 3 Jahre vor | 0

Beantwortet
How can I line up plot edges in subplots?
I was hoping that the 'Position' (actually 'InnerPosition') of the first and last subplot axes would automatically be set correc...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Sine curve fitting in MATLAB
@M — I was in the process of answering this when Win 11 crashed. Again. For the fifth time in two days, and three times when I...

mehr als 3 Jahre vor | 0

Beantwortet
why am I getting the error "Incorrect number or types of inputs or outputs for function 'solve'."
For equality inside a symbolic expression, use double equal signs (==) — syms d e s=solve(7*d + 3*e == 71,d + 2*e == 20); s...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Plot complex signal with imaginary and complex
This is relatively straightforward — Fs = 1000; Tlen = 10; t = linspace(0, Tlen*Fs, Tlen*Fs+1)/Fs; s = exp(1j*t*2*pi); R...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting 3D by rotate 2D plot around y-axis
Probably the easiest way is to define a cylinder and a shape vector — yv = [linspace(0.3, 1, 50)]; ys1 = yv.*exp(-1.75*yv)*5;...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
Unable to find symbolic solution
The system is nonlinear, so it quite likely does not have an analytic solutioon. Try something like this— syms y(x) x Y D...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Using histcounts to determine loose data mode
I am not certain what you want to do. The histcounts function has a third output bin that will index into the elements that w...

mehr als 3 Jahre vor | 0

Beantwortet
Find kinetic constants from differential equations
Some examples: Monod kinetics and curve fitting , Parameter Estimation for a System of Differential Equations , and there are s...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do you indicate the order of plotted points in a polar plot?
Unforutnately, quiiver and polaraxes don’t work together. The only alternative is to create your own polar axes as Cartessian a...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How to calculate respiratory rate from a Doppler radar signal
Perhaps something like this — LD = load(websave('radar_signal','https://www.mathworks.com/matlabcentral/answers/uploaded_files...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Where to find changes in functions in Matlab versions?
See: Release Notes, however that only goes back as far as R2018a. I am not certain that other documentation exists online, alth...

mehr als 3 Jahre vor | 0

Beantwortet
calculate the maximum of every 24 data in matrices
If the times are in (or can be converted to) datetime arrays, one option would be to transpose the matrix so that the sensors ar...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How do I fill legend on double y axis plot?
Without seeing your code (and your MATLAB version, although I’m not certain how relevant that is in this instance), it’s not pos...

mehr als 3 Jahre vor | 0

Beantwortet
How to improve speed of interp1 in for loop?
I’m not certain that I follow what you’re doing. However if you know the ‘inputValue’ and you want to find the closest indices ...

mehr als 3 Jahre vor | 0

Beantwortet
plot function legend is wrong.
The legend is probably picking up the first line plotted, that by default is blue. Perhaps this — figure (55) for i = ...

mehr als 3 Jahre vor | 0

Beantwortet
Upgrading R2021b to R2023a, Need Instructions
There is no actual ‘upgrade’ involved. Simply download R2023a (choose to create the desktop icon if that is available with your...

mehr als 3 Jahre vor | 0

Beantwortet
How to remove the horizontal line from my NMEA plot ?
With no file or other information, the problem may be that there is a common value (possibly 0) that separates segments of the f...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
i have a syntax error in this expression : Vs+K*(C/(C-(u(1)*u(2)))*u(1))+R*u(1)-A*exp((-B/C)*u(1)*u(2))
Checking it with the Symbolic Math Toolbox, it appears to be correct. The only suggestion I can offer is to use element-wise op...

mehr als 3 Jahre vor | 0

Beantwortet
The numbers do not appear in standard format despite the writing (format shortG)
One option is to use string arrays — format shortG Mf=6.480554950317725e+03; Cp_sea=3.976; t_out=100; t_in=25; Qu=Mf*Cp_s...

mehr als 3 Jahre vor | 0

Beantwortet
What does this means?
It returns the elements in from rows 1 and 3 in columns 1 and 2 — G= [ 1 2 3; 4 5 6; 7 8 9]; H= G([1 3], [1 2]) .

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
ytickformat('percentage') not working with latex interpreter
This: ytickformat('$%g \\%%$') seems to work — figure(1) plot(1:100) ytickformat('percentage') figure(2) % This is th...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Periodogram of my audio file gives magnitudes only below zero
That you can hear it simply means that the sound card is scaling it and amplifying it. (I have no idea what the actual amplitud...

mehr als 3 Jahre vor | 1

| akzeptiert

Beantwortet
Transform matrices to XYZ
Something like this should work — [Lat,Lon] = ndgrid(lat,lon); LatLonDepth = [Lat(:) Lon(:), depth(:)]; Since I do not know ...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
How can I open an Oxfor Instrument Pulsar .fid file in MATLAB?
Use zip or a non-MATLAB version of it to create a zip file that encloses the file you want to read, then upload it here. I hav...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Separate time series data in Individual Months
It’s not necessary to determine the beginning and dne of each month to separate them. This approach uses the ymd function wit...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting X,Y,Z Data
With a bit of help from accumarray, it is possible to separate the traces so that there are no connecting lines — Matrix = rea...

mehr als 3 Jahre vor | 2

| akzeptiert

Beantwortet
How to merge plots from different scripts
I do not see the attachment. However the easiest way mightr be to save the data from each script to .mat files, and then load...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
Is it possible to calculate variating signal frequency?
Theere are likely several ways to analyse this. One option is to use findpeaks to get the distances between peaks. Another i...

mehr als 3 Jahre vor | 0

| akzeptiert

Beantwortet
When using xline, would it be possible to have the text in one color and the lines in another color?
Doing that in one pass is likely not an option, since there is no way to independently control the text colour. However colouri...

mehr als 3 Jahre vor | 1

| akzeptiert

Mehr laden