LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 04: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, 05:03 AM   #2
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
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, 05: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, 05:13 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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, 06: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, 06:18 AM   #6
dudeman41465
Member
 
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
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, 06:53 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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-22-2011, 11:38 PM   #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 12:34 AM.
 
Old 09-24-2011, 02: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, 02:24 PM   #10
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
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, 12: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



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 07:28 AM
Matlab Distributed Computing Server: Connecting to Matlab client fails OEP Linux - Server 0 12-21-2009 02:18 PM
matlab jani1982 Linux - Newbie 1 03-22-2008 05:03 PM
How to install Matlab?? I recently installed Fedora. play_play Linux - Software 4 02-18-2007 01:53 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:28 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