help-octave
[Top][All Lists]
Advanced

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

Re: octave script HELP


From: Thomas D. Dean
Subject: Re: octave script HELP
Date: Fri, 12 Jun 2015 14:31:07 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 06/12/15 02:38, yasmin wrote:
forgive me if im having hard time understanding its troubling... now i made
an xx.m file (NOT A BASH) and i wrote in it only argv() and from command
line i tried  the command u wrote up and i gave it argument 2 and it
printer [1,1] =2
now where do i put my octave commands all of them the M=dlmread.... and so
on ? and how do i write this argument which i got correctly and include it
in my filename??  ("waitingtime"ARGUMENT".txt")  ?

This sounds like homework, so I will not work the problem for you.

A suggestion.

Create the file xx.m containing

A=argv();
disp(size(A,1));
disp(typeinfo(A));
for idx=1:size(A,1)
  disp(cstrcat("argument number ",num2str(idx)," is ",A{idx,1}));
endfor;

And, try

octave --no-init-file --no-gui /tmp/xx.m arg1 arg2 arg3 arg4 5 6 7 8

Tom Dean



reply via email to

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