Saturday, October 3, 2009

matlab basics : scripts, functions, precision

running scripts
===============

matlab -r myscript


creating and using a function
=============================

g = inline('9*(s.^6) + 6*(s.^5) - 11*(s.^4) - 4*(s.^3) - 5*(s.^2) + 12*s - 4')

g(1)

precision display
=================

format long e %15 digits with exponent

No comments:

Post a Comment