Answered

How to solve duration/double Error in yearfrac when forecasting prices?

My suggestion is to turn your PriceDates into datetimes. The yearfrac function can work with those. Do you know what year the ...

How to solve duration/double Error in yearfrac when forecasting prices?

My suggestion is to turn your PriceDates into datetimes. The yearfrac function can work with those. Do you know what year the ...

1 giorno ago | 1

| accepted

Answered

Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. ERROR in plotting graph

Your plot syntax is wrong. You cannot define a variable (f) inside your plot command. Use the documentation to identify a valid ...

Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters. ERROR in plotting graph

Your plot syntax is wrong. You cannot define a variable (f) inside your plot command. Use the documentation to identify a valid ...

1 giorno ago | 0

Answered

Matlab: differential equation: starting conditions are wrong?

I'm no expert, but isn't the integral equal to That way, the algebra works out to match the result MATLAB is giving you sym...

Matlab: differential equation: starting conditions are wrong?

I'm no expert, but isn't the integral equal to That way, the algebra works out to match the result MATLAB is giving you sym...

2 giorni ago | 0

Answered

How to cut off 1/4 of half sphere

Set the corresponding quadrant values equal to nan. There are several ways to do this. Here is one. [x y z]=sphere; x(11:end,1...

How to cut off 1/4 of half sphere

Set the corresponding quadrant values equal to nan. There are several ways to do this. Here is one. [x y z]=sphere; x(11:end,1...

3 giorni ago | 1

| accepted

Answered

Index in position 1 exceeds array bounds (must not exceed 1).error in SVM

The error appears to be with how you are indexing DF. The error message is telling you the index in position 1 (rows) exceeds th...

Index in position 1 exceeds array bounds (must not exceed 1).error in SVM

The error appears to be with how you are indexing DF. The error message is telling you the index in position 1 (rows) exceeds th...

3 giorni ago | 0

Answered

Plotting a function with difference between 2 vectors?

The shape is caused by where you can divide by 0. The difference is that, in the first case, this occurs along the diagonal line...

Plotting a function with difference between 2 vectors?

The shape is caused by where you can divide by 0. The difference is that, in the first case, this occurs along the diagonal line...

3 giorni ago | 0

| accepted

Answered

Illegal use of reserved keyword "end".

The problem is you forgot the closing bracket when creating dy1. [T,Y] = ode45(@Bqfun1,[0 2],[1 1 -0.01]); plot (T,Y(:,1),'b',...

Illegal use of reserved keyword "end".

The problem is you forgot the closing bracket when creating dy1. [T,Y] = ode45(@Bqfun1,[0 2],[1 1 -0.01]); plot (T,Y(:,1),'b',...

3 giorni ago | 2

Answered

How to group by in matlab?

Perhaps with groupsummary? A=[1 3 1;1 3 2;1 3 3;1 3 4;3 1 2;3 1 3]; [B,BG]=groupsummary(A(:,3),{A(:,1),A(:,2)},'sum'); C = [c...

How to group by in matlab?

Perhaps with groupsummary? A=[1 3 1;1 3 2;1 3 3;1 3 4;3 1 2;3 1 3]; [B,BG]=groupsummary(A(:,3),{A(:,1),A(:,2)},'sum'); C = [c...

3 giorni ago | 0

Answered

Como hacer que una función trigonométrica haga una gráfica en curva y no líneas rectas

Las funciones trigonometricas no creen graficas. Te dan valores que corresponden a los puntos indicados. Plot connecta estos pun...

Como hacer que una función trigonométrica haga una gráfica en curva y no líneas rectas

Las funciones trigonometricas no creen graficas. Te dan valores que corresponden a los puntos indicados. Plot connecta estos pun...

3 giorni ago | 0

Answered

Not enough input arguments. Error in chp12ex7_b (line 3) X=y(1); T=y(2); HELP how do I fix this error?

Your code runs (see the outputs in your original post now). Do you still see the error? If so, consider clearing your workspace ...

Not enough input arguments. Error in chp12ex7_b (line 3) X=y(1); T=y(2); HELP how do I fix this error?

Your code runs (see the outputs in your original post now). Do you still see the error? If so, consider clearing your workspace ...

3 giorni ago | 0

Answered

help me with some exercises?

MATLAB Onramp El capitulo 6 le ayudara con A, y el capitulo 13 le ayudara con C.

help me with some exercises?

MATLAB Onramp El capitulo 6 le ayudara con A, y el capitulo 13 le ayudara con C.

4 giorni ago | 0

Answered

Please Help I have this code however, I don't know how to input it in MATLAB. I am practicing how to make apps

It looks like you had a MATLAB app to begin with and copied all the code out of it. App designer files have the extension *.mlap...

Please Help I have this code however, I don't know how to input it in MATLAB. I am practicing how to make apps

It looks like you had a MATLAB app to begin with and copied all the code out of it. App designer files have the extension *.mlap...

4 giorni ago | 0

Answered

Functions in app designer

This page shows how to add a custom function to an app. Note that the first input is the app structure.

Functions in app designer

This page shows how to add a custom function to an app. Note that the first input is the app structure.

4 giorni ago | 0

Answered

How can I move data on a graph?

Perhaps you want to use errorbar to create you plot instead of plot.

How can I move data on a graph?

Perhaps you want to use errorbar to create you plot instead of plot.

4 giorni ago | 0

Answered

App Designer: control focus on pressing Tab

Tab order appears to be linked to the order of your components in the component browser. See this answer for a way to change the...

App Designer: control focus on pressing Tab

Tab order appears to be linked to the order of your components in the component browser. See this answer for a way to change the...

4 giorni ago | 0

| accepted

Answered

Using a for loop to extract values from a matrix

Typically this is done using your loop counter to index into your vector. You can learn more about indexing in Ch 5 of MATLAB O...

Using a for loop to extract values from a matrix

Typically this is done using your loop counter to index into your vector. You can learn more about indexing in Ch 5 of MATLAB O...

4 giorni ago | 0

Answered

Save Matlab data in Excel with ActiveX

See this example and this Answers post.

Save Matlab data in Excel with ActiveX

See this example and this Answers post.

4 giorni ago | 0

Answered

My code works when i open the main file directly, but dont work when i open the file from matlab!

Perhaps you need to change the extension of your file? In MATLAB, .mat files are not executable scripts. They are binary files t...

My code works when i open the main file directly, but dont work when i open the file from matlab!

Perhaps you need to change the extension of your file? In MATLAB, .mat files are not executable scripts. They are binary files t...

5 giorni ago | 0

Answered

Plot polars in app designer

Support for PolarAxes in app designer was added in R2018b. What version of MATLAB are you using? Perhaps the example 'Create Po...

Plot polars in app designer

Support for PolarAxes in app designer was added in R2018b. What version of MATLAB are you using? Perhaps the example 'Create Po...

5 giorni ago | 0

| accepted

Answered

ODE Solver Function File Help - Must return a column vector

Check the dimensions of h, your output from Julia_Prob1a_fun. The ode solver expects a column vector, which has dimensions mx1. ...

ODE Solver Function File Help - Must return a column vector

Check the dimensions of h, your output from Julia_Prob1a_fun. The ode solver expects a column vector, which has dimensions mx1. ...

6 giorni ago | 0

Answered

I want to have different colors bars also I want to show the error bars from highest to lowest like what I have in the code. Then, I want to have the first two columns bar together then space between the other two columns bars. Please it is urgent

Perhaps you would be interested in the example displaying groups of bars.

I want to have different colors bars also I want to show the error bars from highest to lowest like what I have in the code. Then, I want to have the first two columns bar together then space between the other two columns bars. Please it is urgent

Perhaps you would be interested in the example displaying groups of bars.

7 giorni ago | 0

Answered

deleting of rows in a matrix

I'd use a logical array (Ch 12 of MATLAB Onramp) created by ismember. I had to fix some values of A. % Original matrix A=[0.02...

deleting of rows in a matrix

I'd use a logical array (Ch 12 of MATLAB Onramp) created by ismember. I had to fix some values of A. % Original matrix A=[0.02...

7 giorni ago | 1

| accepted

Answered

How to change the style of plot with different colors using matlab?

There are ways to do this, but not using plot. See this answer. It does require you determining a good way to get the colors to ...

How to change the style of plot with different colors using matlab?

There are ways to do this, but not using plot. See this answer. It does require you determining a good way to get the colors to ...

8 giorni ago | 0

Answered

Calling a number from an edit in a uicontrol in a separate function

It looks like you are trying to build an app programmatically. If you haven't already done so, I recommend looking at this examp...

Calling a number from an edit in a uicontrol in a separate function

It looks like you are trying to build an app programmatically. If you haven't already done so, I recommend looking at this examp...

8 giorni ago | 0

Answered

how to increasse Bar3 plot bar thickness in both axies

You could try using the 'Width' name value pair (see this example), but I think the bigger issue is the scale of your X vs Y axe...

how to increasse Bar3 plot bar thickness in both axies

You could try using the 'Width' name value pair (see this example), but I think the bigger issue is the scale of your X vs Y axe...

8 giorni ago | 0

Answered

1-cos(x)^2 doesn't simplify?

Perhaps try using the Steps name-value pair. syms x simplify(1-cos(x)^2,'Steps',10)

1-cos(x)^2 doesn't simplify?

Perhaps try using the Steps name-value pair. syms x simplify(1-cos(x)^2,'Steps',10)

8 giorni ago | 2

| accepted

Answered

how to store the data in table after running if loop

You need to assign the results from each look to a matrix. See this example. You can learn more about for loops in Ch 13 of MAT...

how to store the data in table after running if loop

You need to assign the results from each look to a matrix. See this example. You can learn more about for loops in Ch 13 of MAT...

8 giorni ago | 0

| accepted

Answered

XY MODEL COLOR MAP/PCOLOR

This looks like the HSV colormap. I'm not sure what you have for data, but first thought is to use imagesc. % create a matrix ...

XY MODEL COLOR MAP/PCOLOR

This looks like the HSV colormap. I'm not sure what you have for data, but first thought is to use imagesc. % create a matrix ...

8 giorni ago | 0