Access MATLAB

## Your MATHWORKS account For EF 230, you will need to create a Mathworks account. Once you create or update your Mathworks account and license, you can:
Use link: cloud based MATLAB accessible from any device with a web browser. MATLAB online will be sufficient for the majority of our EF230 class work, except for when we program robots, or if you need MATLAB without an internet connection, or if you are working with big data for other classes. MATLAB online integrates with Matlab Drive for managing your files on the cloud and MATLAB connector for automated syncing of your MATLAB drive with your computer.
Install and Use the MATLAB App on your laptop or computer - this is required to program the EF230 robots - To [Install it Now](#install) - use this link to jump down to the EF230 Custom MATLAB installation instructions after you create a Mathworks account . - **Very important note**: If you already have MATLAB installed on your computer, please [click here for important info](#i_have_matlab). A standard installation of MATLAB will not have the toolboxes required for EF230, you'll need to perform a **new custom installation of the latest version of MATLAB** to obtain the required toolboxes.
Use MATLAB Mobile: lightweight version of MATLAB for smartphones and tablets. Allows acquisition of smartphone sensor data to the Mathworks CLOUD/laptop. This may be a fun tool to incorporate in your team projects.
In addition you can access MATLAB through the UT APP SERVER by navigating to apps.utk.edu. This allows you identical access to the UT computer labs. The App server connection can be slow and does not have all required toolboxes for the course, therefore the MATLAB App or MATLAB online is a better option. If you use the APP server remotely you'll want to create a VPN connection. Help can be found here: OIT.
## Steps to Create a Mathworks Account 1. Go to Mathworks Web Portal and click Sign in to get started as the figure shown below. Portal link: [https://www.mathworks.com/academia/tah-portal/university-of-tennessee-536654.html](https://www.mathworks.com/academia/tah-portal/university-of-tennessee-536654.html) 2. Click "Sign in to get Started" ![sign in windown](/ef230-2023-08/m1/matlab-1-intro/img/signin.png) 3. On the CENTRAL AUTHENTICATION SERVICE page, Log in with your UT NetID and Password. ![UTK CAS](/ef230-2023-08/m1/matlab-1-intro/img/cas.png) 4. After you log in your UT account, you will be directed to the Mathworks web page. If you do not have a Mathworks account with UT email, click Create to create a Mathworks account.
![Mathworks window](/ef230-2023-08/m1/matlab-1-intro/img/create.png) 5. Create a MathWorks Account Profile using your unique, university assigned NetID and email address with domain ending with vols.utk.edu (if you were employed by the University prior to being a student and have a utk.edu address use that) ![UTK netid input](/ef230-2023-08/m1/matlab-1-intro/img/netid.png) 6. Verify Your UT Email - Go to your university email mailing address that you entered, open the email sent to you from service@mathworks.com and click the Verification link. ## Install MATLAB on your computer: Note: The local installation is very large (33GB) and time-consuming (as long as 1 hr depending on your machine). Begin the installation at a time when it can run uninterrupted. Installation instructions: 1. The UTK license renews every year. For your first install and every August, view the current UTK licensing instructions. - Use this [Link to the OIT Download site](https://webapps.utk.edu/oit/softwaredistribution) to acquire the **current** UT activation instructions to create or update your Mathworks account. - Enter your UT netid and password (and 2 factor authentication!) - Look for MATLAB under MathWorks, Inc. and click on MATLAB Installation. - Review installation/ renewal instructions for creating a Mathworks Account and for obtaining the latest UTK Academic - Total Headcount license. - You must **use your utk.edu netid, password, and email address** when you register with the Mathworks web site to get the license for FREE. 2. Log in your MathWorks account with your UTnetid and password. Select the icon in the upper right or upper left corner with your user name or initials, select "My Account". Under the "My Software" list and click the Download (Down Arrow). At the next prompt you'll see a list of Releases on the left hand side. Be sure to select the proper release 2023a. This is the version required for EF230. Use the blue button to download the installation file for your OS. 3. Next, locate the file starting with matlab_R2023a in your downloads folder, double click to run it. Continue through the prompts for Installation location and License. This is the most important step: At the prompt **Select Products** use the **Select All** checkbox to select all products so all checkboxes populate as shown below. **Select All** will provide you the MATLAB products required for this course. ![MATLAB Product Installer - Select products](/ef230-2023-08/img/selectproducts.png) If you want to slightly minimize your install time and size you can use the narrowed down toolbox list shown in Fig 1 below, please DO NOT pick and choose products on your own. Most of the commands and tools we use in EF230 reside in these toolboxes, if you do not have ALL the required toolboxes you will not be able to complete quizzes and assignments. You may find you want to use another toolbox for your team projects so the best option is to **Select All** products. 4. Once MATLAB is installed, type **ver** on the command line in MATLAB to verify that at a minimum you have all the toolboxes installed as shown in the figure below. 5. Also important -- DO NOT skip this step -- You must manually install 3 additional "Add-on" packages. Open MATLAB, navigate to Home - Add-ons - Get Add-ons (or run the command supportPackageInstaller from the command line). Select and install the following: - Deep Learning Toolbox for Alexnet Model (use the search bar to search for "alex") - MATLAB Support Package for USB Webcams (search for "usb") - MATLAB Support Package for Raspberry Pi Hardware (search for "pi")(no need to do the setup part - just install it) If you already have MATLAB installed on your computer from a previous install: - **If you do not have MATLAB 2023** installed, **uninstall your version of MATLAB and run a new install of MATLAB 2023** - You can install multiple versions of MATLAB on your computer but it is not recommended - it takes extra disk space and you may accidentally mix versions. - How to uninstall a different version: - For Macs, go to Finder, Applications, and drag your MATLAB icon to your Bin. - For Windows, type "Remove" in the search bar, select Add/Remove Programs, look for MATLAB, at the MATLAB option menu select uninstall. - **If you already have MATLAB** installed, in MATLAB, type **ver** on the command line. Your version should show up as MATLAB 2023. Verify you have ALL of the EF230 required (checkmarked) toolboxes listed below in Figure 1. If your installation meets these requirements, perform step 5 above. If you are missing one or more of the toolboxes shown with a checkmark below, download the [MATLAB installer](https://www.mathworks.com/downloads/), Select Release 2023a, Click on the blue button for your OS, login to your account, launch the installer and follow the prompts until you see the option to select toolboxes to download and install. Either select all (preferred) or select the checkboxes shown below. Figure 1. MATLAB toolboxes required for EF230 ![min install](min_install.png)