Revision 495
(checked in by cbc, 12 years ago)
|
Initial import of Stark code.
|
Line | |
---|
1 |
function t = isscalar(x) |
---|
2 |
%ISSCALAR True for scalar input. |
---|
3 |
% |
---|
4 |
% ISSCALAR(X) returns 1 if it's argument is a scalar and 0 otherwise. |
---|
5 |
% Note that this function does not consider the empty matrix a scalar. |
---|
6 |
|
---|
7 |
% Author: Peter J. Acklam |
---|
8 |
% Time-stamp: 2002-03-03 13:50:54 +0100 |
---|
9 |
% E-mail: pjacklam@online.no |
---|
10 |
% URL: http://home.online.no/~pjacklam |
---|
11 |
|
---|
12 |
error(nargchk(1, 1, nargin)); |
---|
13 |
|
---|
14 |
t = all(size(x) == 1); |
---|