MATLAB Solve Numeric Expressions in MATLAB

AI Thread Summary
To obtain the numerical value of expressions in MATLAB, such as "8763559185889905/20769187434139310514121985316880384", users can utilize the `eval` function. This function evaluates the expression as a MATLAB command, converting it into a numerical value. For further assistance, the MathWorks documentation provides detailed guidance on using `eval`.
quin
Messages
50
Reaction score
0
dear friends
when I run my code in MATLAB , some expressions like:
"8763559185889905/20769187434139310514121985316880384"
appear in my result, so if I want MATLAB to give the numerical value of these sentences, what shouls I type?
for example in mathematica I know that I must write : N[expression]
thanks
 
Physics news on Phys.org
quin said:
dear friends
when I run my code in MATLAB , some expressions like:
"8763559185889905/20769187434139310514121985316880384"
appear in my result, so if I want MATLAB to give the numerical value of these sentences, what shouls I type?
for example in mathematica I know that I must write : N[expression]
thanks

Try these:
http://www.mathworks.com/help/matlab/ref/eval.html
 

Similar threads

Replies
5
Views
3K
Replies
10
Views
3K
Replies
4
Views
1K
Replies
5
Views
2K
Replies
5
Views
3K
Replies
2
Views
2K
Back
Top