help-octave
[Top][All Lists]
Advanced

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

Regarding opening a file in octave script


From: NAGARAJAN
Subject: Regarding opening a file in octave script
Date: Wed, 23 May 2018 15:51:36 -0500

Hi all,

   I am very new to octave and trying to edit an octave script. I have to pass the folder name as a command line argument and to open a file inside the octave script

   For example:

      data="" href="http://tmp.in">tmp.in")  #This command will open the file tmp.in in the current folder. Instead of using current folder, I have to give the folder name each time


    So, I did like this                                                                 octave < run.oct folder_name

    Then I received the value in the octave script like this              folder= argv(){1};
     
    Then modified the the file loading line like this                         data="" href="http://tmp.in">tmp.in");     

    But, it is not working

   Please let me know how to solve this problem.

Thank you

reply via email to

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