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 ...

meer dan een jaar ago | 0

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 ...

meer dan een jaar ago | 0

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 ...

meer dan een jaar ago | 0

| accepted

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

| accepted

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

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 ...

meer dan een jaar ago | 1

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

| accepted

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...

meer dan een jaar ago | 0

| accepted

Using TrueType Fonts on MATLAB Plots
I have brought this issue to the notice of our developers. They will investigate the matter further.

meer dan een jaar ago | 0

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

meer dan een jaar ago | 0

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) ...

meer dan een jaar ago | 0

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(...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

| accepted

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

| accepted

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...

meer dan een jaar ago | 0

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...

meer dan een jaar ago | 0

| accepted

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...

meer dan een jaar ago | 0

| accepted

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...

meer dan een jaar ago | 0