Answered

How to use fsolve with a function of multiple outputs and inputs.

fsolve() is not suitable for finding multiple solutions, except through the mechanism of running multiple times with different ...

How to use fsolve with a function of multiple outputs and inputs.

fsolve() is not suitable for finding multiple solutions, except through the mechanism of running multiple times with different ...

7 months ago | 0

Answered

How to get the state trajectory with a GIVEN input VECTOR using ode45 solver

ode45() is not suitable for finding multiple solutions, except through the mechanism of running multiple times with different u ...

How to get the state trajectory with a GIVEN input VECTOR using ode45 solver

ode45() is not suitable for finding multiple solutions, except through the mechanism of running multiple times with different u ...

7 months ago | 0

Answered

How can I determine the order of a symbolic differential equation?

There doesn’t exist a direct function to determine the order of a differential equation. However, there is a workaround, and we ...

How can I determine the order of a symbolic differential equation?

There doesn’t exist a direct function to determine the order of a differential equation. However, there is a workaround, and we ...

7 months ago | 0

| accepted

Answered

How can I create sphere in this code?

The above code is not able to generate spheres primarily because in the workflow any point that is less than r1 is given a true...

How can I create sphere in this code?

The above code is not able to generate spheres primarily because in the workflow any point that is less than r1 is given a true...

7 months ago | 0

Answered

Seperate solutions from solution set

The solve function when used on eqn1 gives the following result as 3*1 symbolic table. (211285985543901728*root(z^5 + (3733595...

Seperate solutions from solution set

The solve function when used on eqn1 gives the following result as 3*1 symbolic table. (211285985543901728*root(z^5 + (3733595...

8 months ago | 0

Answered

Is is possible to change the needle color of a uigauge?

Right now, we don't support changing the needle color of a uigauge. I have brought this issue to the concerned people and it mig...

Is is possible to change the needle color of a uigauge?

Right now, we don't support changing the needle color of a uigauge. I have brought this issue to the concerned people and it mig...

8 months ago | 0

| accepted

Answered

Using edge function as a trigger

The documentation page about discrete event modeling is for Simscape code. It is not MATLAB code and cannot be used in a MATLAB...

Using edge function as a trigger

The documentation page about discrete event modeling is for Simscape code. It is not MATLAB code and cannot be used in a MATLAB...

8 months ago | 0

Answered

How can I get the equation from Regression Learner App?

The Gaussian Process Model is equivalent to the following: P(y|f,X)~N(y|Hβ+f,σ^2.I) Please refer to the documentation of Gaus...

How can I get the equation from Regression Learner App?

The Gaussian Process Model is equivalent to the following: P(y|f,X)~N(y|Hβ+f,σ^2.I) Please refer to the documentation of Gaus...

8 months ago | 0

Answered

Replicating a curve with frequency and area

The second approach can be followed where the log(area) is considered while dividing into bins and the histcounts function can b...

Replicating a curve with frequency and area

The second approach can be followed where the log(area) is considered while dividing into bins and the histcounts function can b...

8 months ago | 0

Answered

Newbie: How to plot sum product constrain?

The equation having constraints can be solved with the help of solve function in Symbolic Toolbox in MATLAB. Examples on how t...

Newbie: How to plot sum product constrain?

The equation having constraints can be solved with the help of solve function in Symbolic Toolbox in MATLAB. Examples on how t...

8 months ago | 0

Answered

I am trying to use simulink, every-time I try to open blank library this message appears

The default paths of MATLAB may not be configured properly on your workstation. In order to reset them, please proceed with the ...

I am trying to use simulink, every-time I try to open blank library this message appears

The default paths of MATLAB may not be configured properly on your workstation. In order to reset them, please proceed with the ...

8 months ago | 0

Answered

Hello everyone i have this code, it generates 1 plot , now i want to have 10000 samples of it of different values by running a loop and then i need to find the pdf of it, how can i do that do that? please help me, thank you

The 1000 instances data of the variable can be stored in a global variable which can be later used for calculating a much bette...

Hello everyone i have this code, it generates 1 plot , now i want to have 10000 samples of it of different values by running a loop and then i need to find the pdf of it, how can i do that do that? please help me, thank you

The 1000 instances data of the variable can be stored in a global variable which can be later used for calculating a much bette...

8 months ago | 0

Answered

Errors at random when trying to print greek alphabets in Matlab 2020a

The program seems to run fine and produces no errors for even around 20 runs. Look at some examples on how to use Greek Letters...

Errors at random when trying to print greek alphabets in Matlab 2020a

The program seems to run fine and produces no errors for even around 20 runs. Look at some examples on how to use Greek Letters...

8 months ago | 0

| accepted

Answered

How to store vector of doubles in a single cell in a table?

The following workaround can be used to store model coefficients in the table. Refer to the following code: x_data = [1;2;4;5;3...

How to store vector of doubles in a single cell in a table?

The following workaround can be used to store model coefficients in the table. Refer to the following code: x_data = [1;2;4;5;3...

8 months ago | 0

| accepted

Answered

Using TrueType Fonts on MATLAB Plots

I have brought this issue to the notice of our developers. They will investigate the matter further.

Using TrueType Fonts on MATLAB Plots

I have brought this issue to the notice of our developers. They will investigate the matter further.

8 months ago | 0

Answered

odeFunction, many variables

I have brought this issue to the notice of our developers. They will investigate the matter further.

odeFunction, many variables

I have brought this issue to the notice of our developers. They will investigate the matter further.

8 months ago | 0

Answered

How can I solve an ODE that involves a condition on the solution?

The additional condition for y(t) < u(t), then y(t) = u(t), refer to the following workflow: function [zdot] = fun(t,z) ...

How can I solve an ODE that involves a condition on the solution?

The additional condition for y(t) < u(t), then y(t) = u(t), refer to the following workflow: function [zdot] = fun(t,z) ...

8 months ago | 0

Answered

Who can help me fit the data using the matlab, thank you.

Please refer to the following code on how to go about it and get the individual coefficients b1, b2, etc. [D,S,R] = xlsread(...

Who can help me fit the data using the matlab, thank you.

Please refer to the following code on how to go about it and get the individual coefficients b1, b2, etc. [D,S,R] = xlsread(...

8 months ago | 0

Answered

Check ode15s code to solve a double derivative DE

There a couple of problems in the code, I would recommend breaking the function into two functions for ease of understanding. On...

Check ode15s code to solve a double derivative DE

There a couple of problems in the code, I would recommend breaking the function into two functions for ease of understanding. On...

8 months ago | 0

Answered

How to solve differential equations for variable input parameters using for loop and ode45?

The code that will solve these differential equations for multiple different Reynolds numbers (Re) can be written as follows and...

How to solve differential equations for variable input parameters using for loop and ode45?

The code that will solve these differential equations for multiple different Reynolds numbers (Re) can be written as follows and...

8 months ago | 0

Answered

The grid vectors must contain unique points & Error using unique function

The unique function returns the same data as is passed inside it but with no reeditions. The moment vector contained some repet...

The grid vectors must contain unique points & Error using unique function

The unique function returns the same data as is passed inside it but with no reeditions. The moment vector contained some repet...

8 months ago | 0

Answered

How can I solve a system of non-linear equations for positive values only?

fsolve doesn’t allow bounds but lsqnonlin does. Change the last piece of code to get answers for positive values only. x = ls...

How can I solve a system of non-linear equations for positive values only?

fsolve doesn’t allow bounds but lsqnonlin does. Change the last piece of code to get answers for positive values only. x = ls...

8 months ago | 0

| accepted

Answered

Fit experimental results to an equation and get fit parameters

The fit function in MATLAB can be used to fit a data and the type of fitting can be specified by fittype argument in the functio...

Fit experimental results to an equation and get fit parameters

The fit function in MATLAB can be used to fit a data and the type of fitting can be specified by fittype argument in the functio...

8 months ago | 0

Answered

Can I extract the fully-constructed model from a cfit object, not just the separate pieces of the formula?

There is no direct way to obtain the equation with the substituted parameter values from the 'cfit' object in Curve Fitting Tool...

Can I extract the fully-constructed model from a cfit object, not just the separate pieces of the formula?

There is no direct way to obtain the equation with the substituted parameter values from the 'cfit' object in Curve Fitting Tool...

8 months ago | 0

| accepted

Answered

IF statement to fill a cell array base on conditions

Let’s say the two-volume threshold are volume_threshold1 and volume_threshold2, it can be done like this. Refer to the following...

IF statement to fill a cell array base on conditions

Let’s say the two-volume threshold are volume_threshold1 and volume_threshold2, it can be done like this. Refer to the following...

8 months ago | 0

Answered

using los2 function

In los2 function, a sphere is used with a default readius of 63701000 meters. It’s not possible to request use of an ellipsoid i...

using los2 function

In los2 function, a sphere is used with a default readius of 63701000 meters. It’s not possible to request use of an ellipsoid i...

8 months ago | 0

| accepted

Answered

Grouped column headings for a heatmap

There is a customizable heat map present in File Exchange, there is an option for Axes & ticks where the necessary changes can b...

Grouped column headings for a heatmap

There is a customizable heat map present in File Exchange, there is an option for Axes & ticks where the necessary changes can b...

8 months ago | 0

| accepted

Answered

how can i have plot3 from different matrix

To make a 3D mesh from a set of points, the generateMesh function in MATLAB can be used. To include 3-D geometry in it we can us...

how can i have plot3 from different matrix

To make a 3D mesh from a set of points, the generateMesh function in MATLAB can be used. To include 3-D geometry in it we can us...

8 months ago | 0

Answered

How can I turn plotted line into a 3D surface?

The surf function can be used to our advantage here. Instead of plot command we can use the following command in the script to g...

How can I turn plotted line into a 3D surface?

The surf function can be used to our advantage here. Instead of plot command we can use the following command in the script to g...

8 months ago | 0

Answered

how to paste figure to excel file and then save and exit excel?

The problem is arising because at the end of the function, once the graph is pasted to the excel file, it is not saved and direc...

how to paste figure to excel file and then save and exit excel?

The problem is arising because at the end of the function, once the graph is pasted to the excel file, it is not saved and direc...

8 months ago | 0