Bioinformatics ReviewBioinformatics Review
Notification Show More
Font ResizerAa
  •  Home
  • Docking
  • MD Simulation
  • Tools
  • More Topics
    • Softwares
    • Sequence Analysis
    • Algorithms
    • Bioinformatics Programming
    • Bioinformatics Research Updates
    • Drug Discovery
    • Phylogenetics
    • Structural Bioinformatics
    • Editorials
    • Tips & Tricks
    • Bioinformatics News
    • Featured
    • Genomics
    • Bioinformatics Infographics
  • Community
    • BiR-Research Group
    • Community Q&A
    • Ask a question
    • Join Telegram Channel
    • Join Facebook Group
    • Join Reddit Group
    • Subscription Options
    • Become a Patron
    • Write for us
  • About Us
    • About BiR
    • BiR Scope
    • The Team
    • Guidelines for Research Collaboration
    • Feedback
    • Contact Us
    • Recent @ BiR
  • Subscription
  • Account
    • Visit Dashboard
    • Login
Font ResizerAa
Bioinformatics ReviewBioinformatics Review
Search
Have an existing account? Sign In
Follow US
Software

How to execute matlab from terminal in Ubuntu (Linux)?

Dr. Muniba Faiza
Last updated: June 11, 2022 10:40 pm
Dr. Muniba Faiza
Share
2 Min Read
How to execute matlab from terminal in Ubuntu (Linux)?
SHARE

While trying to install Matlab [1], it generally gives an error stating “matlab: command not found.”. Here, we provide a solution to this error.

Contents
1. Running installer with sudo permission2. Adding to the pathReferences

This error occurs when the Matlab is not in your path. This could be because during installation it was unable to write to the default location, i.e., /usr/local/ and you have installed the Matlab in some other location. Or you have installed Matlab successfully but not added to the path. Let’s go through the solutions for both situations.

1. Running installer with sudo permission

When you run the installer without the sudo permissions (./install), it will not install Matlab in the default location stating “cannot create a folder in /usr/local” or “cannot write to /usr/local/“. You need to provide permissions using the sudo command. But when you try to run the installer with the sudo command then it keeps running without displaying anything.

So, to run the installer with the sudo command, you will first have to allow the root user to access the running X server. Open a terminal (Ctrl+Alt+T) and paste the following command.

$ xhost +SI:localuser:root

Now, you can run the installer with the sudo command as shown below.

$ sudo ./installer

2. Adding to the path

Open the bashrc file.

$ sudo nano ~/.bashrc

Add the following command at the end of the file.

$ export PATH=$PATH:/usr/local/MATLAB/R2022a/bin

Here, R2022a is the Matlab version. Replace it with your installed version.

Save and close the file.

$ source ~/.bashrc

Now, you can type $ matlab in the terminal to run the Matlab.


References

  1. MATLAB. (2022). version 9.12.0 (R2022a). Natick, Massachusetts: The MathWorks Inc.
TAGGED:installation UbuntuMatlab
Share This Article
Facebook Copy Link Print
ByDr. Muniba Faiza
Follow:
Dr. Muniba is a Bioinformatician based in New Delhi, India. She has completed her PhD in Bioinformatics from South China University of Technology, Guangzhou, China. She has cutting edge knowledge of bioinformatics tools, algorithms, and drug designing. When she is not reading she is found enjoying with the family. Know more about Muniba
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks
[Editorial] Is it ethical to change the order of authors’ names in a manuscript?
Editorial Opinion
Installing bbtools on Ubuntu
[Tutorial] Installing BBTools on Ubuntu (Linux).
Sequence Analysis Software Tools
wes_data_analysis Whole Exome Sequencing (WES) Data visualization Toolkit
wes_data_analysis: Whole Exome Sequencing (WES) Data visualization Toolkit
Bioinformatics Programming GitHub Python

You Might Also Like

AlgorithmsSequence AnalysisSoftware

Role of Information Theory, Chaos Theory, and Linear Algebra and Statistics in the development of alignment-free sequence analysis

June 12, 2020
compressing and decompressing files using genozip
GenomicsSoftwareTools

How to Compress and Decompress FASTQ, SAM/BAM & VCF Files using genozip?

December 4, 2020
How to perform metal ion-protein docking using idock?
DockingSoftwareTools

How to perform metal ion-protein docking using idock?

August 8, 2021
PhylogeneticsSoftwareTools

Installing and executing ProtTest3 on Ubuntu

May 20, 2020
Copyright 2024 IQL Technologies
  • Journal
  • Customer Support
  • Contact Us
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Sitemap
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?

Not a member? Sign Up