Matlab pre lab 11

profileMasharmnc
lab11bpre-labrevfg.docx

C:\Users\tvw3\AppData\Local\Downloads\fyli image.pngPre-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.

Once the tests have finished, there will be a report that tells you which tests passed and which failed. If a test fails, you should be able to tell from the name of the test which function is causing the problem. Once you have identified the issue, fix it, and then run the tests again. When you pass all tests, copy and paste the output into a word document.