|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
OctaveForWindows Wiki is updatedHello
I have upated OctaveForWindows Wiki. There are two main changes. 1. Description of octave-3.0.1-vs2008-setup.exe is added. 2. Octave on Cygwin package on the cywin official site is now updated to 3.0.1. (Maintainer Marco Atzeri) http://wiki.octave.org/wiki.pl?OctaveForWindows Hi Jonn Please update the information about octave on cygwin. It is no longer out of date. Regards Tatsuro -------------------------------------- Power up the Internet with Yahoo! Toolbar. http://pr.mail.yahoo.co.jp/toolbar/ _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Octave on WindowsIs there someplace where the Windows specific directories / folders are
described? I have been looking for info on the correct place to put the startup commands which on Linux / Unix systems go into .octave. By trial and error I have found that the file .octaverc is read and executed on startup on WinXP when placed directly at Documents and Settings\Username though there is a empty folder named octave at this location. Further, it is impossible to create a file named .octaverc through Win Explorer. I created a file octaverc using the GUI and subsequently renamed it to .octaverc using the command-line. Maybe this info can be put into the Wiki where it can be useful to other newbies like me. Best Wishes, Divakar On Sun, 2008-06-29 at 06:29 +0900, Tatsuro MATSUOKA wrote: > Hello > > I have upated OctaveForWindows Wiki. > > There are two main changes. > > 1. Description of octave-3.0.1-vs2008-setup.exe is added. > > 2. Octave on Cygwin package on the cywin official site is now updated to 3.0.1. > (Maintainer Marco Atzeri) > > http://wiki.octave.org/wiki.pl?OctaveForWindows > > > Hi Jonn > > Please update the information about octave on cygwin. It is no longer out of date. > > Regards > > Tatsuro > > > -------------------------------------- > Power up the Internet with Yahoo! Toolbar. > http://pr.mail.yahoo.co.jp/toolbar/ > _______________________________________________ > Help-octave mailing list > Help-octave@... > https://www.cae.wisc.edu/mailman/listinfo/help-octave Anupuram, TN 603127, INDIA _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Octave on WindowsDivakar Ramachandran wrote:
> Is there someplace where the Windows specific directories / folders are > described? I have been looking for info on the correct place to put the > startup commands which on Linux / Unix systems go into .octave. By trial > and error I have found that the file .octaverc is read and executed on > startup on WinXP when placed directly at Documents and Settings\Username > though there is a empty folder named octave at this location. Further, > it is impossible to create a file named .octaverc through Win Explorer. > I created a file octaverc using the GUI and subsequently renamed it > to .octaverc using the command-line. > _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Octave on WindowsDivakar Ramachandran wrote:
> Is there someplace where the Windows specific directories / folders are > described? I have been looking for info on the correct place to put the > startup commands which on Linux / Unix systems go into .octave. By trial > and error I have found that the file .octaverc is read and executed on > startup on WinXP when placed directly at Documents and Settings\Username > though there is a empty folder named octave at this location. Further, > it is impossible to create a file named .octaverc through Win Explorer. > I created a file octaverc using the GUI and subsequently renamed it > to .octaverc using the command-line. > To my knowledge there no such place but the mail archives where you can probably get all the information you need. There's not much difference though to the described *nix way. The function edit looks for a folder named octave in your %USERPROFILE% (to find out what the system variable %USERPROFILE% contains, open a command window and type echo %USERPROFILE%) and creates it if it doesn't exist. That's the place where all your user-defined functions go by default. Put your .cotaverc into the same folder (that's %USERPROFILE%, not %USERPROFILE%\octave !) in which you can then change the default path to save your user-defined functions, e.g.: mypath = "D:\myOctavefcns"; addpath(genpath(mypath)) HTH, Michael _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Octave on WindowsMichael Grossbach wrote:
> Divakar Ramachandran wrote: > >> Is there someplace where the Windows specific directories / folders are >> described? I have been looking for info on the correct place to put the >> startup commands which on Linux / Unix systems go into .octave. By trial >> and error I have found that the file .octaverc is read and executed on >> startup on WinXP when placed directly at Documents and Settings\Username >> though there is a empty folder named octave at this location. Further, >> it is impossible to create a file named .octaverc through Win Explorer. >> I created a file octaverc using the GUI and subsequently renamed it >> to .octaverc using the command-line. >> > system("touch .octavrc") Have a good day, Bill _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Octave on WindowsOn Sun, Jun 29, 2008 at 11:37 PM, Bill Denney <bill@...> wrote:
>> system("touch .octavrc") > Unfortunately, touch is not a windows command. Indeed. But octave for windows binary package includes a subset of MSYS, including "touch". So the command above should work fine. Michael. _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Octave on WindowsOn Sun, Jun 29, 2008 at 5:39 PM, Divakar Ramachandran
<divakar07@...> wrote: > Is there someplace where the Windows specific directories / folders are > described? I have been looking for info on the correct place to put the > startup commands which on Linux / Unix systems go into .octave. By trial > and error I have found that the file .octaverc is read and executed on > startup on WinXP when placed directly at Documents and Settings\Username > though there is a empty folder named octave at this location. Further, > it is impossible to create a file named .octaverc through Win Explorer. > I created a file octaverc using the GUI and subsequently renamed it > to .octaverc using the command-line. > > Maybe this info can be put into the Wiki where it can be useful to other > newbies like me. Although this might not be obvious, octave does the same under Windows than under Linux: - it loads the system octaverc from the same location: <octave_install_dir>/share/octave/3.0.1/m/startup/octaverc - it loads the user .octaverc from the same location: $HOME/.octaverc - "edit" command uses the same default directory: $HOME/octave The problem is that the $HOME concept is not very common under Windows. I'd say that the best way to find out where to put your .octaverc is to type the following at octave prompt: tilde_expand ('~\.octaverc') For the problem of not being able to create a file named .octaverc from Explorer, would I dare to say "Blame Microsoft!" :-) More seriously, the question here is whether to introduce some Windows-specific behavior in octave to work around a stupid DOS-inherited problem of Explorer... Michael. _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Octave on WindowsMichael Goffioul wrote:
> Although this might not be obvious, octave does the same under Windows > than under Linux: > - it loads the system octaverc from the same location: > <octave_install_dir>/share/octave/3.0.1/m/startup/octaverc > - it loads the user .octaverc from the same location: > $HOME/.octaverc > - "edit" command uses the same default directory: > $HOME/octave > > The problem is that the $HOME concept is not very common under > Windows. I'd say that the best way to find out where to put your > .octaverc is to type the following at octave prompt: > > tilde_expand ('~\.octaverc') > I was actually looking into this yesterday, and where octave looks for the .octaverc file is %USERPROFILE%\.octaverc while if you type "edit ~/.octaverc", it tries to go to %USERPROFILE\octave\~\.octaverc . I looked into trying to fix this, but I couldn't quickly work through all the special cases in the edit.m. > For the problem of not being able to create a file named .octaverc > from Explorer, would I dare to say "Blame Microsoft!" :-) > More seriously, the question here is whether to introduce some > Windows-specific behavior in octave to work around a stupid > DOS-inherited problem of Explorer... The competition uses startup.m. I posted a revision to some code by Kenneth Cate that would search for .octaverc or startup.m a few days ago that would be a simple fix (http://www.cae.wisc.edu/pipermail/bug-octave/2008-June/006238.html). Have a good day, Bill _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
RE: Octave on Windows> -----Original Message-----
> From: Michael Goffioul [mailto:michael.goffioul@...] > > On Sun, Jun 29, 2008 at 11:37 PM, Bill Denney <bill@...> wrote: > >> system("touch .octavrc") > > Unfortunately, touch is not a windows command. > > Indeed. But octave for windows binary package includes a > subset of MSYS, including "touch". So the command above > should work fine. On my Windows XP system it produces "ans = 0" which is not particularly enlightening. There is no .octavrc at %USERPROFILE% but I have one at "C:\Program Files\Octave" (empty). The one I use is called octaverc (no period) and is located at C:\Program Files\Octave\share\octave\site\m\startup Regards, Allen _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
|
|
Re: Octave on WindowsOn Mon, Jun 30, 2008 at 3:08 PM, <Allen.Windhorn@...> wrote:
> On my Windows XP system it produces "ans = 0" which is not particularly > enlightening. There is no .octavrc at %USERPROFILE% but I have one at > "C:\Program Files\Octave" (empty). The one I use is called octaverc (no > period) and is located at C:\Program > Files\Octave\share\octave\site\m\startup If you look at "system" documentation (type "help system"), you'll learn that the "system" command returns the exit code of the child process (in this case "touch"). An error code of 0 usually means "no error" in computing world. When you type system("touch .octaverc"), what you actually do is executing the command "touch" as a child process (again read "system" documentation). This command is executed in an environment inherited from the parent process, in this case it means octave. So, the child process will be executed with the same current directory as octave (you can look at the current directory with "pwd" in octave). As you didn't specify a full pathname in the "touch" command, the file .octaverc will be created in the current directory. That's why you get an empty .octaverc in the octave installation directory. Michael. _______________________________________________ Help-octave mailing list Help-octave@... https://www.cae.wisc.edu/mailman/listinfo/help-octave |
| Free Forum Powered by Nabble | Forum Help |