LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-02-2010, 01:42 PM   #1
AntoGilbert
LQ Newbie
 
Registered: Nov 2009
Location: London, UK
Distribution: CentOS 7, Slackware current, Mac OS
Posts: 7

Rep: Reputation: 0
MatLab or not?


Hi there.

I need MatLab for a course at the university, but it's not an open source software as all of you know, so i wanted to know if there are valid freeware alternatives. I was told to use Octave or Scilab if i didn't want to buy the license and so i would like to know what's better in terms of MatLab compatibility and ease of use, if there are any other (and maybe better) alternatives and also if there are free Simulink-like programs.

Thanks

AP
 
Old 03-02-2010, 02:14 PM   #2
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
AFAIK, Scilab is compatible with MatLab. It even allows to import MatLab files. Though, i don't know how good the compatibility is. You should try and see.
 
Old 03-02-2010, 02:24 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Octave but somethings will not work between the two


you WILL need to buy MatLab
but on the bright side -- student discount --
 
Old 03-03-2010, 06:25 AM   #4
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
OCTAVE is the way to go, I'm using it from many years now and I share scripts with MATLAB users without any problem. There's some area you must take care of:
-OCTAVE is more permissive for some syntax like string delimiter...
-OCTAVE has many MATLAB toolboxes equivalent out of the box, toolboxes which cost a lot of money for MATLAB
-not sure if GUI design is available under OCTAVE

see this link for more details about compatibility issues

Last edited by jf.argentino; 03-03-2010 at 06:26 AM. Reason: url tag
 
Old 03-03-2010, 09:25 AM   #5
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
GNU Octave is quite usable, and I switched to it from Scilab a while ago. But, of course, Scilab is being developed too, so I'm not up to date with its present capabilities.
 
Old 03-03-2010, 02:56 PM   #6
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
you WILL need to buy MatLab
but on the bright side -- student discount --
If I had a choice, I'd switch to Octave from MATLAB because it makes up for the following weaknesses of MATLAB, which shouldn't be present in software that comes at a couple $k subscription price:
  1. MATLAB has no built-in way to run a script from the command line; therefore, integrating it into a larger system of programs and scripts requires a work-around. This is a huge one for me because I design data-analysis systems which are only partially MATLAB. I've written a wrapper script that echoes command-line arguments and list delimiters to MATLAB to simulate script arguments.
  2. MATLAB tramples all over standard output with messages, which means if you're able to run it non-interactively you need to perform some I/O redirection both inside and outside of your MATLAB program.
  3. You always need temporary variables in MATLAB for function returns or subscripts if you want a smaller part of what's returned. For example, if I have a list of matrices and I want the first row of the first matrix, I need to create a variable to store the first matrix, then take the first row of that variable.
  4. A single-user license on a Linux machine means only one user ID has access to it. I've had to write a setuid wrapper in C (setuid root-->matlab user; MATLAB won't accept effective user IDs) just so I didn't have to give out a password to a common account for users to run it (because of that, no GUI for anyone.) On some machines I run a network-licensed version that all user IDs can use, which means it's a gamble whether or not they get to use it when they try to because all licenses might be checked out. The only reason I have a single-user license on my server is I can't afford to find out the next day that my job didn't run because of a licensing error.
I'm not sure about Octave on this one, but MATLAB demands an immense amount of memory on occasion, sometimes varying by an order of magnitude for the same data and process on different occasions; MATLAB is the only thing that's crashed my server. It requires a disproportionate amount of address space, preventing you from enforcing some resource limits.

In summary, I use MATLAB on a regular basis but it's obvious to me the money you spend on it goes toward functions that make pretty graphs and licence enforcement rather than ease of use in practical situations (i.e. when MATLAB isn't the only software in one's life.)

Yes, I'm very biased, but one can be when a lot of money is involved.
Kevin Barry

Last edited by ta0kira; 03-03-2010 at 03:15 PM.
 
Old 03-03-2010, 03:04 PM   #7
AntoGilbert
LQ Newbie
 
Registered: Nov 2009
Location: London, UK
Distribution: CentOS 7, Slackware current, Mac OS
Posts: 7

Original Poster
Rep: Reputation: 0
uhm uhm uhm, so as most of you say Octave is the way... and what about Simulink? is there a program bundled with Octave or something downloadable apart from it?
 
Old 03-03-2010, 03:28 PM   #8
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
I kind of wish I had the money for this, and also a need:
http://www.metacase.com/

I case none of these work out for you and you come across a lot of money...
Kevin Barry
 
Old 03-04-2010, 07:07 AM   #9
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
For what it's worth... (I've never used matlab or similar):

matplotlib (http://matplotlib.sourceforge.net/) tries to emulate a matlab, at least in some way. I don't know if that is only about plots and charts (while assuming you use python + numpy lib for calculations), or if matplotlib aims to be a complete replacement for matlab. May be worth to check out...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Matlab Distributed Computing Server: Connecting to Matlab client fails OEP Linux - Server 0 12-21-2009 02:18 PM
matlab jani_fedora Programming 3 03-29-2008 07:41 AM
matlab jani1982 Linux - Newbie 1 03-22-2008 05:03 PM
Matlab 6.5 !! Help!! rcnow Linux - Software 11 05-10-2007 03:41 AM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration