knowledge-database (beta)

Current group: comp.soft-sys.matlab

Outputs of a function

Outputs of a function  
Kris Sgambato
From:Kris Sgambato
Subject:Outputs of a function
Date:Sun, 23 Jan 2005 19:39:44 -0500
is there a way to make it so that after running a function matlab
only returns the specified outputs and does not include ans.
i created a function[r,x,y]=circle(x1,y1,x2,y2,x3,y3) and i only want
r,x,y to be the outputs. however, matlab also puts ans as one of the
outputs. ans appears to always be whatever the first declared output
of the function is (in this case it is r).
   

Copyright © 2006 knowledge-database   -   All rights reserved