Strange behavior

Maki 1sy8 debian1sy8 at gmail.com
Mon Nov 3 01:30:24 CET 2008


Hi all.

With the following function I found in the function help
function [x,y]=myfct(a,b)
x=a+b
y=a-b
endfunction

I tried
-->c=3;d=4;
-->[a, b]= myfct(c, d)
b  =

  - 1.
 a  =

    7.

Why the following ???

-->myfct
 ans  =

    6.



More information about the users mailing list