MATLAB + Simulink

Engineer with the Pros

Run the industry-standard MATLAB and Simulink on Kubuntu Focus systems.

Please read the disclaimer before proceeding. We review and update guided solutions like this regularly. If you have suggestions or requests, please write support@kfocus.org.

Run MATLAB and Simulink

Step 1: Log into MathWorks

Sign in to MathWorks to download and install MATLAB. Click Install MATLAB at the top right.

MATLAB step 1
Step 2: Download the Zip Archive

Click Download for Linux to download the MATLAB zip archive. This takes around 10 seconds on a 500 Mbit/s connection.

MATLAB step 2
Step 3: Unzip the Archive and Install

Unzip the archive and run the installer.

cd ~/Downloads; mkdir work; cd work; unzip ../matlab_R2022a_glnxa64.zip; ./install
Step 4: Sign in to MathWorks

The MATLAB installer appears. Sign in with your email address.

MATLAB step 4
Step 5: Input Your Password

Input your password to sign in to MathWorks to begin the install.

MATLAB step 5
Step 6: Review License Agreement

Read the MathWork software license agreemnet and accpet if you agree to the terms.

MATLAB step 6
Step 7: Select Your License

Select your license or activation key.

MATLAB step 7
Step 8: Confirm Details

Confirm your name, email address, and login name.

MATLAB step 8
Step 9: Select Destination Folder

Select the destination folder for MATLAB output.

MATLAB step 9
Step 10: Select Products

Select which products to install. We recommend MATLAB and Simulink to start.

MATLAB step 10
Step 11: Select Other Options

Create symbolic links to MATLAB scripts. This is optional and not required.

MATLAB step 11
Step 12: Confirm Selections

Review the selections and ensure that they are correct.

MATLAB step 12
Step 13: Start Installation

MATLAB and other selected products install in about 3-5 minutes.

MATLAB step 13
Step 14: Complete Installation

The installation is complete. A directory called MATLAB is created.

MATLAB step 14
Step 15: Run MATLAB

Move the matlab executable into the Simulink directory. Use the CLI to start MATLAB.

cd MATLAB/bin; mv matlab ../simulink; cd ../simulink; ./matlab
MATLAB step 16
Step 16: Open Simulink

Open Simulink from the panel at the top-right.

MATLAB step 16
Step 17: Start Simulink

The Simulink start page appears and prompts you to select a template or open a file. Choose the latter.

MATLAB step 17
Step 18: Select Simulink Model

Use a model from the directory MATLAB/examples.

MATLAB step 18
Step 19: Open Simulink Model

Open the file to view the model of an automatic transmission. Click the data inspector on the top panel to start data collection.

MATLAB step 19
Step 20: Start Data Inspector

The data inspector appears and gives you an overview of how to use it. Close the overview.

MATLAB step 20
Step 21: Examine Data Inspector

The data inspector has four graphs to display results.

MATLAB step 21
Step 22: Run Simulink Model

Click run in the panel.

MATLAB step 22
Step 23: Inspect Results

After the test is done, the data appear in the inspector. Click the checkboxes to display the information.

MATLAB step 23
Step 24: Finish

Congratulations! You have now successfully run an example model in Simulink.

MATLAB step 24

Troubleshooting

Content will be added as needed.

Revisions

This is a partial revision history. See the git repository for all entries.

Disclaimer

We try hard to provide a useful solution validated by professionals. However, we cannot anticipate every situation, and therefore cannot guarantee this procedure will work for your needs. Always backup your data and test the solution to determine the correct procedure for you.

THIS SOLUTION IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOLUTION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

HAVE QUESTIONS? Call 844-536-2871 or write
TellMeMore@kfocus.org | GET FOCUS GEAR

KFocus Logo