[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compling in Windows
From: |
Tatsuro MATSUOKA |
Subject: |
Re: Compling in Windows |
Date: |
Thu, 8 Apr 2010 17:36:48 +0900 (JST) |
> douchewhite <drlee7 <at> msn.com> writes:
> I've been running Matlab .m files on Octave 2.9.9 on a Linux system. I
>just downloaded Octave 3.2.4 for Windows. I am not so familiar with this
>version. When I opens up my octave on Linux all I do is type in the full
>name of the .m file and it will run. On this windows version the cmd line
>shows octave-3.2.4.exe:1> I checked my file is under the current directory
>but I can't run it by simply types in its name. I tried the Notepad++ that
>comes with it. It only runs .exe files. So how should I run my .m files on
>this Octave 3-.2.4 windows version? Thanx, any help would be greatly
>appreciated.
--- forkandwait wrote:
> I run m files by adding their path then calling them by name. So if you have
> foo in /home/forkandwait/octfiles/foo.m, in your octave session type
>
> $ addpath /home/forkandwait/octfiles/
> $ foo
*******
The above is one of the solution.
Another solution for examole
If you place test.m in C:\oct\mfiles,
octave-3.2.4.exe:1> cd ans =
octave-3.2.4.exe:2> pwd
ans = C:\oct\mfiles
octave-3.2.4.exe:3> test
The above works without problem for me.
NotePad++ is just a text editor and no relation to m file execution.
(If you set properly some settingd, you can execute octave m file with batch
mode from Notepad++.
However I recommend you to try after you have enough knowledge for windows
environments or try it with
those who are power user octave for windows.)
Regards
Tatsuro
If you want edit test.m
octave-3.2.4.exe:4>edit test.m
cd
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/