|
From: | Andy Buckle |
Subject: | Re: Vector assignment problems |
Date: | Mon, 16 Aug 2010 17:00:46 +0100 |
> Ah, let me check if I understand: > > size([1,2]) will return 1 or 2 arguements, depending on context, but > [1,2] is always 1 vector? >a=ones([3 2]); >[c r]=size(a) c = 3 r = 2 >s=size(a) s = 3 2 To write a function that behaves like size does, you could use nargout. -- /* andy buckle */
[Prev in Thread] | Current Thread | [Next in Thread] |