[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use a script to pass parameters to and run another script file
From: |
babelproofreader |
Subject: |
Re: Use a script to pass parameters to and run another script file |
Date: |
Tue, 30 Dec 2008 18:13:20 -0800 (PST) |
Ben Abbott wrote:
>
> Your first script file would be
> -----------------------------
> file_to_read = "data.txt"
> file_to_write = "results.txt"
> process_data (file_to_read, file_to_save)
> -----------------------------
>
> Your second function script would be
> -----------------------------
> function process_data (file_to_read, file_to_save)
> .
> .
> .
> endfunction
> -----------------------------
>
> Place your script between the function/endfunction lies and save the
> second function script with the name "process_data.m". You can use a
> different name, but be sure to change the function name (1st line) as
> well.
>
> Is that what you'd like to do?
>
> Ben
>
> Exactly what I wanted - many thanks.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
--
View this message in context:
http://www.nabble.com/Use-a-script-to-pass-parameters-to-and-run-another-script-file-tp21224034p21226246.html
Sent from the Octave - General mailing list archive at Nabble.com.