|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Help on Octave and Notepad++Dear Octave Community,
I am having trouble to run my simple program that is written on Notepad++.
My octave version is 3.0.2.
My program was as simple as: a=[1 2] b=a.*2
How do I run program that is on the editor Notepad++?
I tried the Run menu (F5) - didn't work.
Please give me some examples and instructions. Thanks a lot!!
Idre
_______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Help on Octave and Notepad++On Fri, Jun 5, 2009 at 8:46 PM, Ider-Od Bat-Erdene<idrenova@...> wrote:
> Dear Octave Community, > > I am having trouble to run my simple program that is written on Notepad++. > > My octave version is 3.0.2. > > My program was as simple as: a=[1 2] b=a.*2 > > How do I run program that is on the editor Notepad++? > I tried the Run menu (F5) - didn't work. > > Please give me some examples and instructions. Thanks a lot!! > > Idre Notepad++ is just a text editor. You must save your script as a text file (with .m extension) to some directory, and then add the directory to Octave path - typically, you change Octave's working directory with "cd" command (in command console) to the directory with your file. E.g. if your file is C:\myoctavefiles\myscript.m, use command cd 'C:\myoctavefiles' and then you can run your script with "myscript" (again in command console). BTW, you have error in your example code, semicolon is missing after "a=[1 2]". Regards Ivan Sutoris _______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Help on Octave and Notepad++Hey, Since Notepad++ is just a text editor, I think you should check whether you have saved you file with a .m extension. You can then run it by typing the name of the file with any relevant input in the command window. regards, tim From: Ider-Od Bat-Erdene <idrenova@...> To: "help@..." <help@...> Sent: Friday, June 5, 2009 9:46:58 PM Subject: Help on Octave and Notepad++ Dear Octave Community,
I am having trouble to run my simple program that is written on Notepad++.
My octave version is 3.0.2.
My program was as simple as: a=[1 2] b=a.*2
How do I run program that is on the editor Notepad++?
I tried the Run menu (F5) - didn't work.
Please give me some examples and instructions. Thanks a lot!!
Idre
_______________________________________________ Help-octave mailing list Help-octave@... https://www-old.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Help on Octave and Notepad++You can also use the "run" command in notepad++ if you configure it correctly
When you invoke run in notepad++ a dialog opens where you can enter the settings how the external program (octave) shall be started, for example: cmd /c cd /d c:\mycode && C:\Octave\3.0.5_gcc-4.3.0\bin\octave.exe "$(FILE_NAME)" 2>c:\mycode\err.txt This will start a windows cmd shell in the folder c:\mycode where the scripts are stored (this is just an example). C:\Octave\3.0.5_gcc-4.3.0\bin\octave.exe has to be the path where octave is installed on your machine (this will also differ on your machine). 2>c:\mycod\err.txt is to save error messages in the file err.txt which can be browsed with notepad++. Since notepad++ is not really a development environment and I cannot see a possibility to use an integrated command shell, I guess it is easier for you if you run emacs for windows with octave in inferior mode, when you will have some sort of powerfull IDE. - mh
|
| Free embeddable forum powered by Nabble | Forum Help |