Beantwortet
How can I solve this datetick error?
The datetick function uses MATLAB datenum values to calculate and plot the dates and times. A much simpler approach uis to us...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Using fit, which coefficients should I extract to assess differences?
Only ‘c’ and ‘d’ are signifiantly different from zero, since the confidence limits of ‘a’ and ‘b’ include zero (the confidence l...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How the increase the affect of lowpass filter on a field data?
The cutoff frequency of the lowpass filter is too high. Try these — LD = load('T35.mat'); T35 = LD.T35; sampling_interval...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How can I use various colors to fill the area under a normal distribution curve?
Sure! Try this — x = linspace(1.5, 5, 250); mu = 3.3; s = 0.6; y = normpdf(x, mu, s); figure plot(x, y) hold on Lv...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
problem of using findpeaks
My guess is that the datetime values are not considered to be monotonically increasing because they span multiple years. Try ...

mehr als 2 Jahre vor | 1

Beantwortet
how to open .fdt file
Searching the Interweb (with DuckDuckGo), I found 15.1 How to load EEGLAB .set and .fdt files without using EEGLAB (05/09/2020 u...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How to find duration of peaks/valleys in chart
Try this — T1 = readtable('NV1-9999.csv', 'VariableNamingRule','preserve') VN = T1.Properties.VariableNames; x = T1{:,1}; ...

mehr als 2 Jahre vor | 1

Beantwortet
What is the function to use to blacken a region?
Perhaps this — % clear %% Plotting the graphs % We have p(x) = 16 => p(x) - 16 = 0 f = @(x) (800000 .* exp(-x./5000)) ./ (x...

mehr als 2 Jahre vor | 0

Beantwortet
why is this not outputting the correct values
There is a syntax error, in that you used a colon operator ‘:’ instead of a comma in the ‘pythtrips’ references. The syntax is ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Creating an equation with 2 unknowns with Curve Fitting
The question is a bit ambiguous. I do not see where curve fitting (actually parameter estimation) enters into it, because I do ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Como resolver esta ecuacion
Is there a problem? This works — % Parámetros del sistema m = 45; % masa c = 64; % coeficiente de amortiguamiento k =...

mehr als 2 Jahre vor | 0

Beantwortet
save a figure in a predefined folder as variable using print
Using the fullfile function may help. You have to supply the necessary information, however fullfile will build the path.

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How to plot specified data points on a polar plot with curved lines, instead of straight lines
I am not certain what result you want. The plot image you posted looks like a sort of spline fit, however when I tried a spline...

mehr als 2 Jahre vor | 0

Beantwortet
Sorting pairs into seperate matrices based on whether they are ascending or descending
The loop is not necessary anyway. Just use ‘logical indexing’ — pairs = [2 8 7 5 6 8 4 7 ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
I have line and want to colour the area behind the line (beyond the x axis) how can I do this
I am not completely certain what ‘behind’ the line means, however from your comments with respect to the x-axis, I guess that yo...

mehr als 2 Jahre vor | 0

Beantwortet
Fit experimental data to analytical expression
Equation (3) is a bit mystifying to me. imshow(imread('analytical_expr.png')) imshow(imread('phase_vel.png')) I assume th...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Convert a datetime to string
I am not certain what the problem is. To convert [2022 07 17] to your desired format using datetime, try this — DT = dateti...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
unexpected discontinuity in graphic
My guess is that the filter is unstable. This occurs relatively frequently with transfer function realiations of filters. I ...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
exponential regression functions with error in input values
There are other options, however everyone hass fminsearch, so using it — x = [4; 25; 100]; y = [100; 50; 0]; % objfcn = @...

mehr als 2 Jahre vor | 0

Beantwortet
3D surface plot from only scalars
The only difference appears to be that whatever produced the plots in the posted image is using much higher precision and differ...

mehr als 2 Jahre vor | 0

Beantwortet
Question about a way variable appears
Functions have their own workspaces. Variables internal to a function will not appear in the ‘Workspace’ window because it only...

mehr als 2 Jahre vor | 0

Beantwortet
Decoding geiger counter signal
If you want to divide the signal into non-overlapping segments and then analyse each segment, use the buffer function. That w...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
How can I simplify this expression using "abs" function?
This seems to work — syms n k Expr = 7/6 * symsum((2*n^3 + 3*n^2 + n - 2*k^3 - 3*k^3 - k)-(k*(k+1)*(2*k+1))/6, k, 1, n-1) E...

mehr als 2 Jahre vor | 0

Beantwortet
indexing error in function code
The initial subscript problem was the result of: y0=0; because there are 12 differential equations. There are several typogr...

mehr als 2 Jahre vor | 0

| akzeptiert

Beantwortet
Why my - tf2sym - command is not working?
If you want to conovert that transfer function to a symbolic variable, try this — Gs=tf(1,[1 10 27 18]); Gss= tf2sym(Gs) w...

mehr als 2 Jahre vor | 0

Beantwortet
Running example "Create Site Viewer" does not work in Matlab R2023b
Apparently, in the interest of reducing the increasing storage demands of the more recent MATLAB releases, MathWorks has stopped...

mehr als 2 Jahre vor | 0

Beantwortet
Can you answer why am I getting this error. What should Ido? The error says 'Unrecognised variable z'.
The first if block condition is not being satisfied, so ‘z’ is not defined. The reason is easy to see, since any absolute va...

mehr als 2 Jahre vor | 0

Beantwortet
How do I find the specific X-coordinates where y is equal to a specific value?
We do not have your data, however what you want to do is straightforward. Try this — freq = linspace(0, 10); y = mag2db(no...

mehr als 2 Jahre vor | 1

| akzeptiert

Beantwortet
How can I just change the color of the bottom x-axis of a figure?
If you just want to change the axis colour, try something like this — Ax1 = axes; Ax2 = axes; Ax2.XAxisLocation = 'top'; Ax...

mehr als 2 Jahre vor | 0

Beantwortet
Revolve a Plot around y axis to generate a 3D plot
The easiest way to do this is to start with the sphere function and then scale it. Try this — theta =linspace(-pi/2,pi/2,10...

mehr als 2 Jahre vor | 0

Mehr laden