LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-10-2011, 05:56 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
Installed MATLAB in /home/c/Desktop/MATLAB But Cannot ACCESS it


How do I start my matlab?

I typed matlab in the terminal but it says command not found.

In windows, a shortcut icon would have been created for me. This is obviously not for linux.

What should I do to start my application?

My matlab is installed in: /home/c/Desktop/MATLAB
 
Old 09-10-2011, 06:03 AM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Look in the folder it's installed to for a binary file of some sort. A lot of times people will put a .run or a .sh file in the folder that you can execute. If there's a Readme check that out.

You did make sure to grab the Linux version right? Windows .exe files will not execute in Linux without special software.
 
Old 09-10-2011, 06:12 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Is the directory containing the executable in your PATH? If it isn't (and you're not using the full path to it), you'll get the "command not found" error.
 
Old 09-10-2011, 06:13 AM   #4
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
The installation process at some point asks you if you want to create symbolic links to the matlab executable in /usr/local/bin. Maybe you didn't notice that, but you can always create them later as root:
Code:
cd /usr/local/bin
ln -s /home/c/Desktop/MATLAB/bin/matlab .
ln -s /home/c/Desktop/MATLAB/bin/mex .
 
Old 09-10-2011, 07:05 AM   #5
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
/home/c/Desktop/MATLAB/bin/matlab

Yup. Double clicking on this works.

can you tell me what the mex file does? I am curious.

At least I got my matlab working.

Also, if I create symbolic links, will a shortcut automatically appear just like windows?
 
Old 09-10-2011, 07:18 AM   #6
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Ubuntu
Posts: 794

Rep: Reputation: 56
Instead of creating a symbolic link you can create a launcher on your Desktop that points to the executable. Just right click your desktop and click "Create Launcher". I'm not sure if that functionality is still there depending on what version of Ubuntu you're running. I'm still using Gnome 2 in Debian. You could make a symbolic link and it should work just fine, but by making a "Launcher" you could set your own icon and everything, :-)
 
Old 09-10-2011, 07:53 AM   #7
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
Creating the symbolic links in /usr/local/bin just makes matlab available to all the users that have /usr/local/bin on their PATH (all the users by default). However it has nothing to do with desktop/panel shortcuts. You have to create them as dudeman41465 suggested. In the newly created launcher set the Executable/Application to setsid and the command line arguments to /usr/local/bin/matlab -desktop. This is the method suggested by Mathworks support.

Regarding mex it is an utility that allows you to interface C/C++ or Fortran routines to Matlab. You can think at it as a compiler where the final executable is a matlab command (mex file). You can run the mex compiler outside matlab (using the mex command you've linked in /usr/local/bin) or from the matlab command line.
 
Old 09-23-2011, 12:38 AM   #8
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
Wait a minute...

What is the point of creating symbolic links to

cd /usr/local/bin

when I have to scroll to it specifically?

Also, why can I open matlab in "run in terminal" but not in "run"

Last edited by hitmen; 09-23-2011 at 01:34 AM.
 
Old 09-24-2011, 03:26 AM   #9
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by hitmen View Post
Wait a minute...

What is the point of creating symbolic links to

cd /usr/local/bin

when I have to scroll to it specifically?
I don't know what you mean by "scroll to it specifically", but colucix explained the point of creating symbolic links in /usr/local/bin in the very first sentence of post 7.
 
Old 09-24-2011, 03:24 PM   #10
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
Quote:
Originally Posted by hitmen View Post
Wait a minute...

What is the point of creating symbolic links to

cd /usr/local/bin

when I have to scroll to it specifically?

Also, why can I open matlab in "run in terminal" but not in "run"
start matlab and type in why and all shall be known.
 
1 members found this post helpful.
Old 09-25-2011, 01:11 PM   #11
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Original Poster
Rep: Reputation: Disabled
I didnt know that why in MATLAB will have so many funny answers.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Application Unable To Access Folder /usr/local/MATLAB/R2011a hitmen Linux - Newbie 5 09-10-2011 08:28 AM
Matlab Distributed Computing Server: Connecting to Matlab client fails OEP Linux - Server 0 12-21-2009 03:18 PM
matlab jani1982 Linux - Newbie 1 03-22-2008 06:03 PM
How to install Matlab?? I recently installed Fedora. play_play Linux - Software 4 02-18-2007 02:53 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 07:49 AM


All times are GMT -5. The time now is 06:40 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration