help-octave
[Top][All Lists]
Advanced

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

creating and editing m-files from Octave command line


From: Bowles.Terry
Subject: creating and editing m-files from Octave command line
Date: Sun, 23 Sep 2012 17:21:24 -0400

Hi –

 

I’m new to Octave, migrated from Matlab, having set-up issues. Trying to use the edit command from the Octave command line to create a new m-file if it doesn’t exist, and modify those that do. I have uncommented the EDITOR line in the octaverc file:

 

## Uncomment and change following line for your preferred editor

EDITOR('C:\\Program Files\\Notepad++\\notepad++.exe');

 

and  have added the path where my files exist, also in the octaverc file:

 

prefix=octave_config_info('prefix');       % My note: this line was part of the install, found it contains Octave’s home directory, which is what I want.

addpath(strcat(prefix, '\my_files\'), 1);

 

Restarted Octave and verified that the path does indeed contain the ‘my_files’ directory. However, if I cd to that directory and create a new file to edit:

 

Octave:15> edit testfnc

 

Octave creates a stub of the ‘testfnc’ file for me, but it does not open it in an editor window. Instead I get the following error message:

 

error: system: CreateProcess failed – can’t create child process

error: called from:

error:     D:\program files\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\miscellaneous\edit.m at line 299, column 7

 

And I get the same error message if I try to edit the newly-created stub.

 

I frankly cannot understand the edit.m file well enough to diagnose the problem myself. Any help you can provide would be much appreciated. Thanks so much!

 



The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.

reply via email to

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