Menu
Octave-forge with Windows Hi, I ’ ve installed Octave 2.1.67 with Cygwin u nder Windows XP. Now, I would need octave-forge as well but I can ’ t manage to install it. I ’ ve downloaded the 2004.11.16 version and tried to configure it under cygwin but I get the following error: Checking for mkoctfile mkoctfile /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/././././i686-pc-cygwin/bin/ld: cannot find –loctinterp collect2: ld returned 1 exit status configure: error: Could not run mkoctfile whereas mkoctfile is installed.
Anyone has already installed octave-forge separately from octave with Windows? Thanks, Carine. Hi I wish to save plots that I generated with Octave. I am running Octave under Linux, i.e. The command 'plot' opens an Xwindow on the screen, generated by gnuplot. Any advice on how to save such a plot to a PostScript or JPEG file? Thanks, Attie - Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: How to fund new projects: Subscription information. Hi I wish to save plots that I generated with Octave. I am running Octave under Linux, i.e. The command 'plot' opens an Xwindow on the screengenerated by gnuplot. Any advice on how to save such a plot to a PostScript or JPEG file? ThanksAttie - Octave is freely available under the terms of the GNU GPL. Octave's home on the web: How to fund new projects: Subscription information: - - Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: How to fund new projects: Subscription information. Hi I wish to save plots that I generated with Octave. I am running Octave under Linux, i.e. The command 'plot' opens an Xwindow on the screengenerated by gnuplot. Any advice on how to save such a plot to a PostScript or JPEG file?
Windows 7 Loader is a program developed by Daz crew to programmatically activate most of the Microsoft products such as Windows 7, Windows 8/8.1, Windows 1. Windows 7 Loader v2.2.2 By Daz Full Free Download. This Windows 7 loader application has been used by many people throughout the world to activate Win 7. Windows 7 loader by daz v2.2.1. This Windows 7 loader application has been used by many people throughout the world to activate Windows 7 successfully. The loader can activate most Windows 7. Download Windows 7 loader 2.2.1 By Daz Mediafire Windows Loader v2.2.1 The safe and easy way to activate Windows. Here is updated vers. Windows 7 Loader v2.2.2 By DAZ Permanent Activator 2017 is a powerful and featured rich activator. It is designed with all latest features.
ThanksAttie - Octave is freely available under the terms of the GNU GPL. Octave's home on the web: How to fund new projects: Subscription information: - - Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: How to fund new projects: Subscription information. I use the following file: '/sw/share/octave/site/m/printeps.m'.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% A.
Hodel% Assoc. Elect & Comp Eng% Auburn University, AL% function printeps(filename)% function printeps(filename)% replot screen plot to a file% inputs:% filename: string:% no argument checking done - this means YOU mark! Gset terminal postscript eps color eval(sprintf('gset output '%s', filename)); replot #gset terminal x11 closeplot endfunction%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% To print a plot to a file, I simply type printeps ('filename.eps') It works great. And you can easily edit it to 'printfig', &c. I use Octave on Mac OS X, but I imagine that that doesn't matter.
On Apr 6, 2005, at 6:47 AM, Attie Combrink wrote. Hi I wish to save plots that I generated with Octave. I am running Octave under Linux, i.e. The command 'plot' opens an Xwindow on the screengenerated by gnuplot. Any advice on how to save such a plot to a PostScript or JPEG file?
ThanksAttie - Octave is freely available under the terms of the GNU GPL. Octave's home on the web: How to fund new projects: Subscription information. Mike Miller wrote: On Wed, 6 Apr 2005, Claudio Belotti wrote: plot(x,y) print('/tmp/plot.eps','-color') this produces an eps file On 2.1.50 on Linux I get this when I try the above commands: error: `print' undefined near line 38 column 1 print is part of octaveforge - Octave is freely available under the terms of the GNU GPL. Octave's home on the web: How to fund new projects: Subscription information. Hi I wish to save plots that I generated with Octave.
I am running Octave under Linux, i.e. The command 'plot' opens an Xwindow on the screengenerated by gnuplot. Any advice on how to save such a plot to a PostScript or JPEG file? ThanksAttie - Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: How to fund new projects: Subscription information. Helloo, Forgive me if I'm not answering your question but I've been trying to complete my installation for Cygwin, Octave 2.1.67 and Octave Forge on Windows myself (I am using 2000). I downloaded Octave-Forge-2004.11.16 and unzipped it in Cygwin using Paul Soderlind's Software Page as a guide tar -xzvf Octave-Forge-2004.11.16.tar.gz -dir=/ and things seem to be OK. However, I cant seem to use the line command '-traditional' traditional undefined near line 2 column 3. Siti Hajar A.
Bakar - Original Message - From: Carine Simon Date: Wednesday, April 6, 2005 11:27 pm Subject: Octave-forge with Windows. HiI've installed Octave 2.1.67 with Cygwin under Windows XP. Now, I wouldneed octave-forge as well but I can't manage to install it. I've downloaded the 2004.11.16 version and tried to configure it under cygwinbut I get the following error: Checking for mkoctfile. Mkoctfile /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/././././i686-pc- cygwin/bin/ld:cannot find -loctinterp collect2: ld returned 1 exit status configure: error: Could not run mkoctfile whereas mkoctfile is installed. Anyone has already installed octave-forge separately from octave with Windows? ThanksCarine.
- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: How to fund new projects: Subscription information. HiI’ve installed Octave 2.1.67 with Cygwin under Windows XP. Now, I would need octave-forge as well but I can’t manage to install it.
I’ve downloaded the 2004.11.16 version and tried to configure it under cygwin but I get the following error: Checking for mkoctfile mkoctfile /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/././././i686-pc-cygwin/bin/ld: cannot find –loctinterp collect2: ld returned 1 exit status configure: error: Could not run mkoctfile whereas mkoctfile is installed. Anyone has already installed octave-forge separately from octave with Windows? ThanksCarine. - Shai Ayal, Ph.D. Head of Research BioControl Medical BCM 3 Geron St. Yehud 56100 ISRAEL Tel: + 972 3 6322 126 Fax: + 972 3 6322 125 email: - Octave is freely available under the terms of the GNU GPL. Octave's home on the web: How to fund new projects: Subscription information.
At the end, I've done it but I had to update cygwin with - In Devel: autoconf, binutils, bison, cvs, dejagnu, flex, gcc, g, g77, gperf, make - In Text: tetex, tetex-base - In Utils: diff, patch But now everything does work! -Mensaje original- De: Shai Ayal mailto: Enviado el: jueves, 07 de abril de 2005 8:51 Para: Carine Simon CC: Asunto: Re: Octave-forge with Windows Did you use the -enable-shared flag when configuring octave?
Make sure you follow all the below steps to install octave: tar xzf octave-2.1.67.tar.gz cd octave-2.1.67./configure -enable-shared make && make install wait a few hours. After that I was able to install octave-forge with no problems Carine Simon wrote: HiI've installed Octave 2.1.67 with Cygwin under Windows XP. Now, I would need octave-forge as well but I can't manage to install it. I've downloaded the 2004.11.16 version and tried to configure it under cygwin but I get the following error: Checking for mkoctfile. Mkoctfile /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/././././i686-pc-cygwin/bin/ld. cannot find -loctinterp collect2: ld returned 1 exit status configure: error: Could not run mkoctfile whereas mkoctfile is installed. Anyone has already installed octave-forge separately from octave with Windows?
ThanksCarine. - Shai Ayal, Ph.D. Head of Research BioControl Medical BCM 3 Geron St. Yehud 56100 ISRAEL Tel: + 972 3 6322 126 Fax: + 972 3 6322 125 email:!DSPAM:428!
- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: How to fund new projects: Subscription information.
The Octave-Forge Symbolic package adds symbolic calculation features to GNU Octave. These include common Computer Algebra System tools such as algebraic operations, calculus, equation solving, Fourier and Laplace transforms, variable precision arithmetic and other features. Internally, the package uses SymPy(www.sympy.org), but no knowledge of Python is required.
Compatibility with other symbolic toolboxes is intended. Details Dependencies: = 4.0.0 Runtime system dependencies: python, sympy (= 1.0).
I recently installed GNU Octave on my Mac using Homebrew and as soon as I typed octave into bash, it opened up the octave-gui window. The Octave GUI looks quite unappealing (on a mac, at least) so I wanted to use the command line interface. My fix was to create a permanent alias in /.bashprofile which was alias octave='octave -no-gui'. Is there a more permanent fix to this? That is, how can I start using octave without invoking the GUI instead of the CLI? Is there a solution where I don't have to do this by using an alias.
(Not that using the alias is a big issue, but I just wanted a better fix to starting Octave on the command line itself.). You can get the infomation from the wiki of octave: Octave-3.8.2 The site that provide previous version of octave for windows of ver.
3.8.2 (unofficial build using mxe-octave) is closed. A mirrored binary can be downloaded. If you got any problems while running Windows 8 or libstdc-6.dll errors, try this octave-gui.bat file and place it into your Octave folder (e.g.
@echo off set PATH=%CD% bin start octave -force-gui -i -line-editing exit Simplely, you can just add the the C: Octave Octave-3.8.2 bin folder path to your Environment Variables, like this.
Introduction MATLAB is an incredibly powerful tool for engineers, not just for number crunching solutions to specific problems, but as an aid to creativity. MATLAB power users sometimes talk about it feeling almost like an extension of their brain. Even for a dyed in the wool C programmer like me, it’s really useful to sketch out algorithms in MATLAB before implementing them in C. MATLAB’s notation for manipulating arrays is wonderfully concise and the ability to visualise data sets at the drop of a hat using its graphing tools really helps the creative process. The main problem with MATLAB is that its a proprietary platform and even the student version comes with a hefty price tag. This is where Octave comes in – it’s basically an open source implementation of the MATLAB language.
There are other free alternatives, like and, but Octave seems to be the one that’s most consistent with MATLAB. Provided that you steer clear of non-compatible toolboxes, your Octave M-files should run fine in MATLAB. Installing Octave on Windows Unfortunately, it’s not immediately obvious how to install Octave on Windows. Visitors to need to do a bit of detective work to find their way to the correct binary executable installer for Windows. Personally, I think it would be really great if the correct download link was given pride of place on the Octave home page. I can’t help wondering whether 9 out of every 10 people who go looking for Octave end up abandoning the idea because they’re not quite sure which version to try.
Fortunately, once you know what to do, installing Octave on Windows is fast and straightforward and really is worth the effort. I don’t have MATLAB installed on my laptop at all anymore – I just use Octave. The exact file to download is “Octave 3.6.4 for Windows Microsoft Visual Studio” which is one of the versions provided on Octave Forge.
Octave
Here’s the link:. (68.2 MB) Run the installer and accept the default installation location (C: software Octave-3.6.4 ) and other default options, as shown in the following sequence of screen shots: Now just wait while the installation takes place Fix for Windows 8 If you’re running Windows 8, you’ll probably run into the same problem I did when I first ran Octave – the command prompt was missing from the command window, as shown below: If so, you just need to do one small fix on the newly installed Octave to get things working. As a workaround for a gnulib Windows 8 compatibility bug, you need to add some command line switches to the octave.exe desktop shortcut: Right click the Octave desktop shortcut and click on “Properties”.
Add the text '-i -line-editing' to the end of the Target field. Assuming you installed Octave in the default location (“C: Software Octave-3.6.4 ”), the complete Target line will be as follows: C: Software Octave-3.6.4 bin octave-3.6.4.exe -i -line-editing Here’s how it looked on my laptop: Using Octave Now just click OK and you’re ready to start using Octave. Double click on the desktop shortcut to start it up. Here’s how it looks when I open it on my laptop. As you can see, it looks very different from MATLAB. However, we can type the same commands in Octave that we would use in MATLAB. In the following example, I’ll create an array of time values, use it to generate a sinusoidal function, and then plot the sinusoid in a figure window.
Just like in MATLAB, a sequence of commands can be stored in an M-file. However, you’ll need to use an external text editor. The one I strongly recommend is which is free to download from. Notepad is an incredibly useful text editor which can be used for all kinds of programming tasks (editing M-files is just one thing it’s good at). Kerjasama ekonomi regional. Here’s an example of writing an M-file in Notepad: Once I saved my M-file, I ran it in the Octave command window as shown below: Useful Octave commands In the final screen shot above, you can see some useful commands for moving between different folders. The pwd command displays the “present working directory” – i.e. The full path of the folder you’re currently in.
If you’re trying to run an M-file, pwd should display the name of the folder that contains your M-file. The cd command is used to “change directory” – i.e. Move to a different folder inside the one you’re in. The command “cd.” leaves the current folder and returns you to the one that contains it. The clc command clears the command window.
Hi Joand, Sorry I haven’t come across that problem before, but perhpas you could try doing what Nirvik suggested above, since it sounds like it’s something to do with the graphics output. He suggested typing the following command in Octave: graphicstoolkit(“gnuplot”); Octave can use several different methods to produce its graphical output, so it’s possible that using a different one will not require vc100libtiff-3.dll, which sounds like it’s something to do with producing tiff images. I’ve no idea why it might be missing in your installation though. Thanks Walter, I’m glad you found the instructions useful. We have MATLAB on all our School PCs, but I always encourage my students to install Octave on their own laptops and use it as their desktop calculator so that they can get plenty of practice with MATLAB syntax while they’re working on problems in other subjects.
Regarding a good reference on Octave commands, I can’t really suggest one. I normally just refer to MATLAB documentation (either from Mathworks, who publish it, or from third parties). The core syntax is virtually identical between MATLAB and Octave, so any basic MATLAB tutorials should be applicable. Of course, once you start digging into toolbox functions, you’ll find that some are present in Octave and some are not. I presume there’s some kind of documentation available from the Octave web site, but to be honest I’ve never really foudn it useful.
If I’m looking for help on a specific command in Octave – say csvread for example – I just google “MATLAB csvread” and hope it will be the same, which is usually is. Ultimately, I think students are best thinking of Octave and MATLAB as two sides of the same coin. By learning one, you’re also learning the other. There are differences of course (e.g. Simulink), but what you learn in Octave is all stuff you can apply straight away in MATLAB. Hi Zeldovich, I’m glad to hear you found this helpful. To be honest, I’m not completely sure why those particular command line options work in this case, but here’s how they’re described in the Octave documentation: '-interactive' '-i' Force interactive behavior.
This can be useful for running Octave via a remote shell command or inside an Emacs shell buffer. For another way to run Octave within Emacs,.note Emacs Octave Support:. '-line-editing' Force readline use for command-line editing. It’s a while now since I write this, so I can’t actually remember where I found out to use them, but I suppose I was just googling around trying to solve my problem and I must have come across it being suggested somewhere. In the case of the “–line-editing” option, I’m assuming that the “readline” they refer to is GNU Readline or something like it. If whatever line editing infrastructure is available on a particular platform isn’t working for Octave, I can see how this might push it to use some kind of built-in line editor instead, which seems to make sense in this particular case. Man, thank you so much, you made my day!!
I tried many different installations of Octave (Linux virtual machine, Cygwin, etc), which all failed until I tried the one you did, however, if Octave was running fine, plots were not displayed I spent the day on this and was starting to be sooo desperate!! I finally found your page and since I had the command prompt missing as well, I did as you said, and tried again to plot, all “who knows?” mode: it miraculously solved the problem!! Thank you so much!!
Hi Ida, As it happens, I’m running version 3.6.4 on my Windows PC and version 3.8.2 on my Linux laptop which is what I use most of the time. To be honest, I haven’t really noticed much that’s different between the two versions, but I tend to work mostly from first principles at the command line (or in M-files) – I rely mostly on core functionality that doesn’t really change from version to version and I don’t use a lot of toolbox functionality. Also, for practical teaching purposes, I try to stick to what works identically in MATLAB and Octave, because we have MATLAB on the school computers but I recommend Octave to my students because it’s really convenient and of course free. My guess is that there have been significant changes in the toolboxes etc over recent versions, but the one big thing which has definitely changed recently is the GUI. A student of mine here in DIT was showing me the new GUI a few months back and I was really amazed to see how polished it looks now. I expect the GUI is front and centre in the new version 4.0 which has recently been released, but I haven’t had a chance to try it yet.
Now that the teaching term is coming to an end I hope to spend a bit of time getting up to date! Hi esong98, When you say that you couldn’t do tables, do you mean you couldn’t print tables? If you just mean you couldn’t create matrices, the syntax is basically exactly the same as in MATLAB. Similarly, the syntax for loops is the same as far as I know. I certainly haven’t noticed anything different between programming loops in MATLAB and Octave.
Regarding exporting results to Excel, what I normally do is write my matrix to a CSV file (comma separated values). This is a standard plain text format for exchanging numerical data between different programs – it can be opened in Excel and lots of other software packages too, so it provides plenty of flexibility. Here’s an example of creating a 3 x 3 matrix and exporting it to a CSV file which can be opened in Excel: x = 1 2 3; 4 5 6; 7 8 9; csvwrite('mydata.csv',x); Hopefully that helps. Thanks for your response Ted. I meant I couldn’t print out tables and/or then export them to a latex or excel file. As a beginner I didn’t even know what a CSV file was until I just looked it up on ask.com.
So I just create a CSV flle in any plain text file? Then how do I get it displayed in an excel worksheet without having to type in the values manually?
Knowing how to do these procedures would be very helpful to me, because I’m finding out that Visual Basic is a very clumsy vehicle to doing complex mathematical modeling. Even when you declare the variables as doubles or long, it still can’t handle big numbers, and moderately complex calculations causes the program to breakdown. In fact, under certain conditions, excel can handle more complicated calculations than its complementary VBA program.
You have to remember I’m an old guy who learned computer programming by learning Fortran. Hi again esong98, The example I gave above is Octave code to create a 3×3 matrix containing the numbers from 1 to 9 as example data, and then write that matrix to a CSV file called “mydata.csv”. That CSV file can be opened in Excel just like a regular Excel document. You should literally see the numbers from 1 to 9 appearing in the first three rows and columns of your Excel spreadsheet.
To open the CSV file in Excel, just click on the “File” menu and then click “Open” and browse to the folder containing your CSV file. If you don’t see the CSV file in the folder it’s probably just not being displayed because the file extension isn’t “.xls” or “.xlsx” as it would be for a normal Excel document. To fix that, set the filetype to “. All files” at the bottom of the File Open dialog box. You should then see your CSV file and you’ll be able to double-click on it.
By the way, if you’re not sure how to run the example code, there are two ways: 1. Run Octave and just type the lines in manually one at a time, or 2. Open a text editor (e.g. Notepad), type in the two lines, and save it as “example.m”. Then, run Octave, change folder to the one where “example.m” is stored and type “example” (without the.m extension!) to run the program. Either of the above approaches should create the CSV file, “mydata.csv”. Hope that helps.
Hi Ted, Thank you very much for your post, it was really helpful!! I’ve replicated your set of commands in order to plot as well the sinusoidal functio. It appears, but it keeps coming along with these error message: ” ‘gnuplot’ is not recognized as an internal or external command, programme, or archive; executable” (The original message reads: ” ‘gnuplot’ no se reconoce como un comando interno o externo, programa o archivo por lotes ejecutable”) What can be the reason for this?
Thanks a lot! Hi Max, Assuming you selected the same options as I did during installation, I’m not sure why gnuplot is not being found. Gnuplot is basically an entirely separate software package that is used to create all kinds of plots and graphs.
I think it is installed by default when you install Octave on Windows. Here, Octave uses gnuplot behind the scenes to take care of producing plots. However, gnuplot is just one of the packages Octave can use for this purpose, so it might be worth trying a different option since gnuplot doesn’t seem to be available (or at least is not being found correctly) on your PC. Octave’s “graphicstoolkit” function allows you to check (or set) which graphics toolkit is currently being used to plot graphs. To see which graphics toolkit is currently being used, just type the following command in Octave: graphicstoolkit It will probably tell you gnuplot is currently being used. To check which toolkits are available, use the Octave’s “availablegraphicstoolkits” function, by typing the following in Octave: availablegraphicstoolkits That should print out a list of available toolkits, probably including “gnuplot” and hopefully including one or more other options.
If there are other toolkits in the list, you can try selecting them using the “graphicstoolkit” function again. I’m writing this on my Linux machine and the available graphics toolkits are “fltk” and “gnuplot”. To select “fltk” I would type the following in Octave: graphicstoolkit('fltk') Give that a try and see what other toolkits (if any) are available. When you installed the pkgs, did you remember to tell Octave to automatically load them?
If not, everytime you start it you’ll need to load the pkgs you want to use. Just type “pkg load pkgname;” without the quotes and you’re done.
Octave Windows Download
To make sure the pkg was loaded successfully, just check with pkg list and see if there’s an ”. ” next to the pkg name; you should see something like the following: pkg load image; pkg list - Package Name Version Installation directory - ————–+———+———————– - image. 1.0.0 /home/jwe/octave/image-1.0.0. Hi Cindy, Sorry to hear you’re having that problem. I’m running only Linux on my laptop now, so it’s quite a while since I’ve used Octave in Windows. Did you follow all the instructions in the “Fix for Windows 8” section above?
How To Install Octave Windows
The problem you’re having sounds similar to what would happen if you hadn’t implemented that part. Also, I googled and there’s a discussion about this problem on Stack Overflow where you might get some useful suggestions: Finally, if you’re still using Octave 3.6.4, I suggest trying a newer version. Perhaps the problem will just go away. You can download a binary installer for the latest version from the Octave website: Best of luck. Once you resolve this problem, I hope you’ll find Octave as useful as I do!
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |