[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: .m file behaves differently when invoked from command line vs within
From: |
Kelvin McCollough |
Subject: |
RE: .m file behaves differently when invoked from command line vs within interactive octave session |
Date: |
Tue, 16 Feb 2010 11:13:37 -0500 |
The following is a very simple .m file that works as expected from within
octave but doesn't work when invoked from the command line. The goal is to
pass a file name for subsequent operations on.
function testcmdline(vargargin)
% test command line input
fileName=vargargin(1:end);
printf ("%s\n", fileName);
IMPORTANT CONFIDENTIALITY NOTICE
This message and any attached documents contain information from ViXS Systems,
Inc. and are confidential and privileged and further subject to any
confidentiality agreement between the parties. The information is intended to
be viewed only by the individual(s) or entity(ies) to whom the message is
addressed. If you are not the intended recipient, be aware that reading,
disclosing, copying, distributing or using the contents of this transmission is
prohibited. Please notify us immediately if you have received this transmission
in error, and delete this message along with any attached files.