Beantwortet
Why doesn't this code solve the equation?
Answered in <http://www.mathworks.com/matlabcentral/newsreader/view_thread/347804?s_cid=ans2doc_man_link http://www.mathworks.co...

mehr als 6 Jahre vor | 0

Beantwortet
Display a variable and its units
Units are now in MATLAB if you have Symbolic Math Toolbox. Try this, and see the tutorial: <https://www.mathworks.com/help/symbo...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to add units to a number and differentiate between different inputs
Units are now in MATLAB if you have Symbolic Math Toolbox. Try this, and see the tutorial: <https://www.mathworks.com/help/symbo...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
how to set a unit to variable?
Units are now in MATLAB if you have Symbolic Math Toolbox. Try: >> u = symunit; >> x = 2*u.meter x = 2*[m] ...

mehr als 6 Jahre vor | 3

| akzeptiert

Beantwortet
Usage of roots and solve in MATLAB
1. To understand the difference between numeric and symbolic arithmetic, please see: <https://www.mathworks.com/help/symbolic/ch...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
Jacobian of equation with left and right hand sides
Starting R2017a, The "lhs" and "rhs" functions are available. See: <https://www.mathworks.com/help/symbolic/lhs.html?s_cid=an...

mehr als 6 Jahre vor | 0

Beantwortet
How to arrange equation variable on right and left hand side?
Starting R2017a, use the "isolate" function: <https://www.mathworks.com/help/symbolic/isolate.html?s_cid=ans2doc_man_link https:...

mehr als 6 Jahre vor | 2

Beantwortet
How to plot the symbolic expression given by "root"
If I understand correctly, you're asking " _How can I automatically substitute values into a symbolic expression?_". Use the sub...

mehr als 6 Jahre vor | 0

Beantwortet
Error using integral: A and B must be floating-point scalars
To represent integration with symbolic variables, use "int" instead of "integral". <https://www.mathworks.com/help/symbolic/i...

mehr als 6 Jahre vor | 0

Beantwortet
Create a general function or script, where the user can specify the number of variables, which is both symbolic and possible to evaluate with fminunc?
* To use fminunc, first convert the Symbolic function to a MATLAB function using <https://www.mathworks.com/help/symbolic/matlab...

mehr als 6 Jahre vor | 0

Beantwortet
Help with piecewise function? Can't use else/if?
If you have R2016b, you can just use the piecewise function: <https://www.mathworks.com/help/symbolic/piecewise.html?s_cid=ans2d...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to define ranges for solutions in this example
To specify ranges for multiple variables, see the last example on <https://www.mathworks.com/help/symbolic/solve-equations-numer...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
help to fix this numeric symbolic array
You can't have a "numeric symbolic" array because "numeric" and "symbolic" are different data types. For your options, see <http...

mehr als 6 Jahre vor | 0

Beantwortet
Error using FEVAL Produced on an Attempt at calling fplot
First, a side note that you should format code in your posts: <https://www.mathworks.com/matlabcentral/answers/13205-tutorial-ho...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
How to convert strings to symbolic expressions without sym()?
Why do you need to convert strings to symbolic expressions? EDIT: Starting R2017b, use <https://www.mathworks.com/help/symbolic/...

mehr als 6 Jahre vor | 1

Beantwortet
How can I compute Jacobi Elliptic Functions in Matlab where the modulus is > 1?
Starting R2017b, all Jacobi Elliptic functions in MATLAB with Symbolic Math Toolbox. Example: >> jacobiCD(1,3) ans = ...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
How to calculate imaginary part of incomplete gamma function in matlab.
You can find "gammainc" for imaginary input values using the Symbolic "igamma" function. Carefully read the note in the "Descrip...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
Matlab Numerical integral improvement
Updated answer for R2017b. Use <https://www.mathworks.com/help/symbolic/int.html?s_cid=ans2doc_man_link int> and convert the sym...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
symb toolbox newby?
Please start with the Symbolic Getting Started: <https://www.mathworks.com/help/symbolic/getting-started-with-symbolic-math-tool...

mehr als 6 Jahre vor | 0

Beantwortet
Symbolic math solve numeric approximation
Question: When does the Symbolic Math "solve" statement try to find a numeric approximation? "solve" tries to find a symbolic...

mehr als 6 Jahre vor | 0

Beantwortet
How to combine numerator and denominator in original form
The answer is in this example on the sym doc page: <https://www.mathworks.com/help/symbolic/sym.html#bu7u7ur-6?s_cid=ans2doc_man...

mehr als 6 Jahre vor | 0

| akzeptiert

Beantwortet
How do I convert a string input to an executable equation?
For symbolic equations, starting R2017b, use <https://www.mathworks.com/help/symbolic/str2sym.html?s_cid=ans2doc_man_link str2sy...

mehr als 6 Jahre vor | 1

Beantwortet
symbolic evaluation where function is obtained from user input text
Starting R2017b, use <https://www.mathworks.com/help/symbolic/str2sym.html?s_cid=ans2doc_man_link str2sym>. >> prompt = 'in...

mehr als 6 Jahre vor | 2

| akzeptiert

Beantwortet
How can I take the f(y)th-order derivative of another function?
Use |.*| instead of |*| , and for the why, look up those operators or simply search for your error |Inner matrix dimensions must...

mehr als 6 Jahre vor | 0

Beantwortet
Can't find explicit solution
You can check Walter's suggestion that the solution is in limits as >> limit(dLdb,b,0) ans = NaN >> limit(dLdy0,b,...

mehr als 6 Jahre vor | 1

| akzeptiert

Beantwortet
Integral of a gaussian function wrong answer
I could get the algebraic answer but it required calling "simplify" twice. Need to investigate this further. >> syms x A ...

fast 7 Jahre vor | 0

| akzeptiert

Beantwortet
How to work with piecewise results that are returned by the solve() function
Honestly, the simplest solution is to upgrade to at least R2016b where "piecewise" was introduced in Symbolic Math Toolbox. Othe...

fast 7 Jahre vor | 0

| akzeptiert

Beantwortet
How to find the derivative of the function at some value of x?
To differentiate a function and then find the value, use symbolic functions. For details, see <https://www.mathworks.com/help/sy...

fast 7 Jahre vor | 5

Beantwortet
Optimizing program to get faster results
Following up on my comment above: 1. Do not overwrite symbolic variables with numeric values. So don't do syms B D an...

fast 7 Jahre vor | 0

Beantwortet
How can I solve A*X + X*B = C equation for X? where A, B&C are 2*2 matrixes.
You can solve this with the symbolic toolbox if you declare "X" as a matrix: >> X = sym('x%d',[2 2]) X = [ x11, x12] ...

fast 7 Jahre vor | 0

Mehr laden