Matlab pre lab 11
Pre-Lab 11b
CS 122L - 5 Points Total
Objectives
· Verify that your code from lab 11a is correct
Deliverables
· Submit your pre-lab answers in Bblearn under the Lab 1 pre-lab assignment area prior to the start of class.
The goal of this pre-lab is to verify that you have correctly implemented the functions that were assigned to you in Lab 11a. To get started, download the prelab11b.m file from Bblearn. Move it to the same directory as your Lab11a folder. If you have been following instructions, that folder should be located in the cs122 directory.
After your have moved the file, cd into your cs122 directory and add the cs122 folder and the Lab11a folder to your path. If you are using the addpath function, then this will require two separate function calls.
Once you have added the files to the path, simply enter the following command into the MATLAB console:
runtests(‘prelab11b.m’)
This will run all of the tests with your code. Note that the tests will ask you to input several values. Enter appropriate values as requested or your tests will fail.