help-octave
[Top][All Lists]
Advanced

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

Re: octave script HELP


From: Juan Pablo Carbajal
Subject: Re: octave script HELP
Date: Thu, 11 Jun 2015 15:13:46 +0200

On Thu, Jun 11, 2015 at 2:33 PM, yasmin <address@hidden> wrote:
> Hello i really need help with this i'm new to octave !
> i was trying to make a bash script that runs octave  and some octave
> commands but it didn't work
> so i made 2 scripts , the first one runs octave and then go to the other
> script and passes an argument to that other script, through:      octave
> script.sh 1
> here is the other script/the octave script  :
>
> #! script.sh -q -f
>
> M = dlmread("/dev/shm/waitingTime"$1".txt");
> x = M(:,1);
> y = M(:,2);
> WT = stem(x,y);
> `saveas(WT, "/dev/shm/wt"$1".pdf");`
>
> M = dlmread('/dev/shm/thinkingTime'$1'.txt');
> x = M(:,1);
> y = M(:,2);
> TT = stem(x,y);
> `saveas(TT, "/dev/shm/TT"$1".pdf");`
>
> close all
>
> the problem is in the line M = ...
> at the $1 which is the argument sent to octave ...now i really don't get
> where the problem is any help ?
>
>
>
>
> --
> View this message in context: 
> http://octave.1599824.n4.nabble.com/octave-script-HELP-tp4670813.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave

Why do you need bash scripts?

Can't you just run octave (--no-gui if you want command line) and call
your scripts directly?



reply via email to

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