[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: |
Thu, 11 Jun 2015 11:38:57 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
On 06/11/15 08:43, yasmin wrote:
i still have a problem , i am passing an argument to the octave script but
not to a function it`'s just a number that identifies which file i am going
to plot, i want to pass this number to the octave sript then in the octave
script e able to read and plot a certain file
M = dlmread('/dev/shm/waitingTime' NUMBER '.txt');
for example in this line i get error when i tried using $1 in the NUMBER
place ..so what should i do ?
It appears you are confusing bash and octave.
Your script.sh is interpreted by bash and so should only contain bash
commands.
dlmread is an octave function and so does not make sense to bash.
I suggest you make a test file, say, xx.m
That contains
disp("Args:");
argv()
and, try
octave --no-gui xx.m
If you must have a bash script, create a file
#! /bin/bash
octave --no-gui xx.m $@
Tom Dean
- octave script HELP, yasmin, 2015/06/11
- Re: octave script HELP, Juan Pablo Carbajal, 2015/06/11
- Message not available
- Re: octave script HELP, Juan Pablo Carbajal, 2015/06/11
- Re: octave script HELP, Yasmin Khattab, 2015/06/11
- Re: octave script HELP, yasmin, 2015/06/11
- Re: octave script HELP, Juan Pablo Carbajal, 2015/06/11
- Re: octave script HELP, yasmin, 2015/06/11
- Re: octave script HELP,
Thomas D. Dean <=
- Re: octave script HELP, yasmin, 2015/06/11
- Re: octave script HELP, Thomas D. Dean, 2015/06/12
- Re: octave script HELP, Thomas D. Dean, 2015/06/12
- Re: octave script HELP, yasmin, 2015/06/12
- Re: octave script HELP, Thomas D. Dean, 2015/06/12