[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Behaviour of nargin
From: |
irc |
Subject: |
Behaviour of nargin |
Date: |
7 Feb 1995 16:41:03-GMT |
Is this the correct behaviour for nargin for octave v1.1.0 running on
HP700 series. It does not destinguish between 0 and 1 input arguments.
Version 1.0 gave nargin=0 for 0 input arguments and nargin=1 for 1 input
argument
Octave command line
octave:75> try
nargin = 1
nargout = 1
octave:76> try(1)
nargin = 1
nargout = 0
octave:77> a=try
nargin = 0
nargout = 1
Octave:78> a=try(1)
nargin = 1
nargout = 1
In file try.m
function [ c, d ] = try(a,b)
nargin
nargout
endfunction
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Behaviour of nargin,
irc <=