Solve Numeric Expressions in MATLAB

  • Context: MATLAB 
  • Thread starter Thread starter quin
  • Start date Start date
  • Tags Tags
    Matlab Numeric Value
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
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