help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

size(foo), `foo' not being a matrix


From: GAIL
Subject: size(foo), `foo' not being a matrix
Date: Fri, 14 Sep 2007 18:50:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060918 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666

Let foo.m be the simple function file

###  foo.m
disp("What's this?")
###

If foo is not a matrix, issuing size(foo) in the directory of foo.m gives

------------
octave:1> size(foo)
What's this?
ans =

 -1  -1
octave:2> ------------

The same applies to other functions such as numel. I don't think that's 
meaningful.

G.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]