Respondida
label each curve on semilog graph
I am not certain what you want, however creating a legend entry for each line does not appear to be the desired result. It ...

casi 3 años hace | 2

Respondida
Create 30 minute bins by reading time stamps
What do the ‘Calculated time’ values represent? Are they fractions of a day (from about ¼ to about 3¼ days) or something else? ...

casi 3 años hace | 0

| aceptada

Respondida
How to differentiate a time series while minimizing noise in the signal?
The way I prefer to minimise the noise (especially broadband noise) in a signal is to use the sgolayfilt function first (specify...

casi 3 años hace | 0

Respondida
how to average over specific dates
Your data should be in a table or timetable. Then use the isbetween function to generate a logical vector, and take the mean of...

casi 3 años hace | 0

Respondida
Need help to make a ode function asign a value
There are several problems (not the least of which is the absence of the necessary variables, so it is not possible to run your ...

casi 3 años hace | 0

Respondida
How to get finer data sampling?
Use the 'MeshDensity' name-value pair — R0 = 0.917; h0 = 1; n = 8; rk = 1; k = 1; d = 32/180*pi; Lv0 = sqrt(h0.^2+2*R0...

casi 3 años hace | 0

| aceptada

Respondida
How to extract data of one solution from multiple solutions?
This can be done using the clusterdata function, followed by accumarray — R0 = 0.917; h0 = 1; n = 8; rk = 1; k = 1; d = ...

casi 3 años hace | 1

| aceptada

Respondida
I am trying to get my answer to Display but it wont let me
Another option — syms f(x) f(x) = (x^3) - (7*x) + 6; x=solve(f(x)==0,x); disp(["the roots will be ",string(x.')]) Note the...

casi 3 años hace | 0

Respondida
How do I keep original headers when bulk converting CSV files to Excel and deleting everything except for three columns?
With respect to getting the original headers (variable names), with readtable use 'VariableNamingRule','preserve' (in earlier ve...

casi 3 años hace | 0

| aceptada

Respondida
Find line containing word in a mixed format txt file
I am not certrain how the table actually exists in the file (and it would help significantly to have the actual file rather than...

casi 3 años hace | 0

| aceptada

Respondida
How to fill the area between lines in gray shade
This becomes a bit more complicated with multiple lines. This assumes you want the gray region between the maximum and minimu...

casi 3 años hace | 0

| aceptada

Respondida
How to add vertical line in z direction in YZ view meshplot?
I do not completely understand how you are creating the ‘YZ’ view. If you are creating it using ‘vlew(90,0)’ the first option...

casi 3 años hace | 1

Respondida
Drawing a bode plot of the Duffing equation, which is a special application of the integro-differential equation model.
The problem with using a two-element vector for ‘tspan’ is that the MATLAB ODE integrators do not produce regularly-spaced time ...

casi 3 años hace | 1

Respondida
Error using integral function with anonymous function
Perhjaps using integral2 instead will work here — C1 = 3.742e8; C2 = 1.4388e4; SB = 1.38*10.^-23; %Boltzmann's constant C1 ...

casi 3 años hace | 0

Respondida
Fitting model to data set by estimating parameters
The calculated ‘YSol’ should return a (Nx3) matrix where ‘N’ equals ‘numel(t)’ so if it does not, you need to determine the reas...

casi 3 años hace | 0

| aceptada

Respondida
Concatenate the index i within the loop
Use the compose function — num_labels = 10; labels = compose('Node %d',1:num_labels) .

casi 3 años hace | 0

| aceptada

Respondida
How to solve equation with several unknown variables for a specific variable?
The isolate function is helpful here — syms w0 g l r l a m eqn = m*g*l*(1-cos(a))==1/2*1/2*m*(r^2+2*l^2)*((r^2/(r^2+2*l^2))*w...

casi 3 años hace | 0

| aceptada

Respondida
Eliminating specific data from a file
There are functions like fillmissing to interpolate the NaN entries and rmmissing to delete them (the entire row with a NaN entr...

casi 3 años hace | 0

| aceptada

Respondida
Default output for ps in the spectrogram function
Apparently the default for spectrumtype is 'psd'. At least that’s how I read it.

casi 3 años hace | 0

| aceptada

Respondida
Can we generate best fitted nonlinear equation between 4 inputs and 1 output, if we dont know the equation initially
Ideally, the nonlinear objective function is a mathematical model of the process that created the data. Otherwise, there are ...

casi 3 años hace | 0

Respondida
Loading variables to a specifc workspace
One option to transfer specific variables to your script (calling) workspace would be to include them as outputs of your functio...

casi 3 años hace | 0

Respondida
How do you express the root locus for k in MATLAB
Perhaps something like this — K = 1:3; % Define: 'K' (Vector) s = tf('...

casi 3 años hace | 0

Respondida
Draw the surface of a two variables function
All the variation occurs near the centre of the surface. You can begin to see that in the contour plot using surfc, however to ...

casi 3 años hace | 0

Respondida
how to plot different horizontal lines over each group of bar plot
Try something like this — A = (5+rand(10))/6; figure hb = bar(A); for k = 1:numel(hb) xep(k,:) = hb(k).XEndPoints;...

casi 3 años hace | 0

| aceptada

Respondida
Plotting Multiple Shaded Uncertainties
That appears to be correct, although it would be necessary to provide the data to check for any errors. You can prevent the p...

casi 3 años hace | 0

| aceptada

Respondida
Matrix dimensions do not match
Either ‘z’ or ‘jd’ has to be a (16x1) double for that to work. That discrepancy is throwing the dimension error. .

casi 3 años hace | 0

Respondida
textscan syntax help converting file
Try something like this — Array = {'Item1', 2526976, 8, 14, 11, [224,224,137,80] 'Item2', 2526976, 8, 18, 15, [224,2...

casi 3 años hace | 0

| aceptada

Respondida
Scatter Plots, for Rolling data
I am not certain that I fully understaznd what you want to do. Probably the easiest way to do that (without actually deleting a...

casi 3 años hace | 0

| aceptada

Respondida
Having trouble with confidence bands on Kaplan-Meier curve
You have one typographical error. This assignment: lower2 =datatable.Cohort1SurvivalProbability95CILower; should instead b...

casi 3 años hace | 0

| aceptada

Respondida
p values equal to 0
The ‘pValue’ of 0 means that with extremely high degrees-of-freedom (estimating 4 parameters with 2229207 observations) and appa...

casi 3 años hace | 1

Cargar más