Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have Matlab on Windows 7 and I need to use it in my Ubuntu system installed on Virtualbox because I am working on files only compatible in Linux. How can I transfer Matlab into my Ubuntu system?

share|improve this question
add comment

3 Answers

"files only compatible in Linux"

What do yo mean ? Like all the lines are separated by a LF instead of a CRLF ? You can find converters for that. There should be a way to make your files compatible with Windows, installing Ubuntu to solve a compatibility issue looks stupid.

You should ask for help porting the Matlab files on GNU/Linux to Matlab on Windows instead.

share|improve this answer
add comment

Programs cannot generally be "transferable" from one computer to another. Particularly between operating systems, this just isn't possible. The installation and un-installation processes are just not comparable. You can install on Ubuntu but this is separate from Uninstalling on Windows. It may look like the same software to you, but it's not the same program underneath the hood. The except to this is what are called "Portable Apps", which are bundled together with all the files needed for various platforms and made to run without installing. See http://portableapps.com for some samples of this.

What I recommend is setting up a shared-file space between Linux and Windows. You can do this fairly easily with VirtualBox's tools so that the guest can easily mount a folder from the host as a network drive.

Once you have file sharing worked out so your Ubuntu guest can write files to a folder where your Windows Matlab can access, you can use Linux tools to easily convert files between Unix and Windows formats. The only difference is the line-endings. Several tools are available to do this, the two easiest to figure out are dos2unix and unix2dos. You can probably guess which one is which. You could convert your files from one format to the other like this:

unix2dos unix_data_file.txt windows_data_file.txt

(I'm sure matlab uses something other than .txt extensions but if the problem is unix vs Linux formats they are almost certainly just text files, so use whatever filenames you have, and just write a converted one to be used on Windows.)

share|improve this answer
    
"Programs cannot generally be "transferable" from one computer to another". It is up to license, so without seeing the actual one, it is hard to say, and license per user is pretty popular so in general programs are transferable. –  greenoldman Sep 5 '11 at 5:22
1  
@macias: The issues I describe are technical barriers, not licensing issues. –  Caleb Sep 5 '11 at 9:15
add comment

See https://help.ubuntu.com/community/MATLAB for installing matlab on ubuntu

share|improve this answer
1  
You'll need a license which allows you to install the Linux version. –  Thomas W. Jul 6 '11 at 17:02
    
I only have one copy of MATLAB and I don't have the license number or activation key anymore. –  GTyler Jul 6 '11 at 17:39
3  
@GTyler: even if you had it the Windows licence does not allow you to use Matlab on Linux. A possible alternative is to use SciLab, which is free and opensource and which can execute Matlab scripts (depending on the script). –  nico Jul 6 '11 at 17:45
1  
On the topic of Open-Source MATLAB alternatives. Why don't you give octave a try. sudo apt-get install octave. –  Zhehao Mao Jul 6 '11 at 17:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.