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 permission
  • 2. Adding to the path
    • References

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.

ai tools vs traditional tools in bioinformatics
AI Tools vs Traditional Tools in Bioinformatics- Which one to select?
Algorithms Artificial Intelligence Machine Learning Software Tools
AI vs Physics in Molecular Docking
AI vs Physics in Molecular Docking: Towards Faster and More Accurate Pose Prediction
Artificial Intelligence Drug Discovery Machine Learning
10 years of Bioinformatics Review: From a Blog to a Bioinformatics Knowledge Hub!
Editorial
Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks

You Might Also Like

Installing mgltools2 package on ubuntu
DockingSoftwareTools

Installing MGLTools2 package (ADFR/AGFR/AutoSite) on Ubuntu

October 17, 2020
compressing and decompressing files using genozip
GenomicsSoftwareTools

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

December 4, 2020
Installing Conda on Ubuntu (Linux)
Software

Installing Conda on Ubuntu (Linux)

March 12, 2022
How to install Autodock on Ubuntu (Linux) with CUDA GPU support?
DockingSoftwareTools

How to install Autodock on Ubuntu (Linux) with CUDA GPU support?

October 16, 2021
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