LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installed MATLAB in /home/c/Desktop/MATLAB But Cannot ACCESS it (https://www.linuxquestions.org/questions/linux-newbie-8/installed-matlab-in-home-c-desktop-matlab-but-cannot-access-it-902267/)

hitmen 09-10-2011 04:56 AM

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

dudeman41465 09-10-2011 05:03 AM

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.

Nylex 09-10-2011 05:12 AM

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.

colucix 09-10-2011 05:13 AM

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 .


hitmen 09-10-2011 06:05 AM

/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?

dudeman41465 09-10-2011 06:18 AM

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, :-)

colucix 09-10-2011 06:53 AM

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.

hitmen 09-22-2011 11:38 PM

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"

Nylex 09-24-2011 02:26 AM

Quote:

Originally Posted by hitmen (Post 4479827)
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.

schneidz 09-24-2011 02:24 PM

Quote:

Originally Posted by hitmen (Post 4479827)
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.

hitmen 09-25-2011 12:11 PM

I didnt know that why in MATLAB will have so many funny answers.


All times are GMT -5. The time now is 04:18 AM.