Computer Since

Cs Pre-Lab

Pre CS 122L – 5 Points Total

Objectives
● Learn about several MATLAB built-ins that will be useful in the upcoming lab.

Deliverables
● Submit your pre-lab answers in Bblearn under the Lab 11 pre-lab assignment area prior to the start of class.

1) Read the documentation for the functional forms given below and write a
brief description (2-3 sentences) for each one. Each description should discuss parameters, return values (if any), and where the function might be used. Make sure to cite your sources and state your responses in your own words.

a) TF = strcmp(s1,s2)
http://www.mathworks.com/help/matlab/ref/strcmp.html
b) fileID = fopen(filename,permission)
http://www.mathworks.com/help/matlab/ref/fopen.html
c) r = rand
http://www.mathworks.com/help/matlab/ref/rand.html
d) fprintf(fileID,formatSpec,A1,…,An)
http://www.mathworks.com/help/matlab/ref/fprintf.html
e) fclose(fileID)
http://www.mathworks.com/help/matlab/ref/fclose.html

find the cost of your paper