Division in matlab?

0

Good evening. Could someone help me?

How to show the result of a substitution in matlab without being in split form? Show the decimal number?

'res' is a variable that holds a polynomial expression

'subs' was used to replace the 'x' of the expression with 1

'value0' gets the result of the replacement

The expression to be replaced is:

  • + 1

    CODE LINE:

    valor0=subs(res,x,1);
    disp(valora0)
    

    THE RESULT in COMMAND WINDOW IS:

    573384793757928688891/210935095747151921152

        
  • asked by anonymous 14.11.2017 / 03:30

    1 answer

    0

    If you want to display this output in decimals I think the following functions may help. Try to use double(variavel) , or the vpa(a,b) function, where is a input variable and b is the number of decimal places you want to display.

        
    31.12.2017 / 17:30