help-octave
[Top][All Lists]
Advanced

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

Re: How to use a script to run a .m function?


From: Jordi Gutiérrez Hermoso
Subject: Re: How to use a script to run a .m function?
Date: Wed, 8 May 2013 09:30:22 -0400

On 8 May 2013 09:23, sflee <address@hidden> wrote:
> Hi all,
>
> I have a function --- main_image.m
> To use this function, I have to input one parameter ---
> main_image('001.jpg')
>
> I am using ubuntu 12.04, every time I will run octave in a terminal.
>
> The case is that, I stored all the commands in the form like this in a
> xxx.txt file:
> main_image('001.jpg')
> main_image('002.jpg')

Rename that file to xxx.m and type "xxx" inside Octave.

Also, read this:

    http://wiki.octave.org/FAQ#How_do_I_execute_an_Octave_script.3F

- Jordi G. H.


reply via email to

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