On Mon, Mar 24, 2008 at 9:49 PM, alkan <[EMAIL PROTECTED]> wrote:
>
>  Sorry for the typo. Even when it is closed, it does not work.

I don't think there is a command "tr" in Octave (or Matlab).  You
probably want to compute the trace.

sage: octave("trace([[1,2; 1,2]])")
 3

Also, in Octave you make a matrix with rows separated by commas
and a semicolon between each row.

You could also use Sage directly:

sage: matrix(2,2,[1,2,1,2]).trace()
3


>
>  On Mar 24, 2:58 pm, Jason Grout <[EMAIL PROTECTED]> wrote:
>  > alkan wrote:
>  > > Hello All;
>  > > I am a noob in SAGE. I am trying to call anoctavefunction from
>
> > > sage,  The problem is it doesn't return from that function call, it
>  > > doesn't print anything or any error. has anybody have any insights
>  > > into this? The same call works perfecly fromoctaveconsole. This call
>
>
> > > is supposed to return a control system variable generagted from
>  > > transfer function.
>  >
>  > >octave("tr([1 2],[1 2]")
>  >
>  > I think you might be missing a parenthesis to close the call to tr.
>  >
>  > Thanks,
>  >
>  > Jason
>  >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to