# lab1 - CS100M Section(Lab 1 When you have completed the lab...

• Lab Report
• 2

This preview shows pages 1–2. Sign up to view the full content.

CS100M Section (Lab) 1 When you have completed the lab, show this sheet and any associated programs to your lab instructor, who will record that you have completed the lab. If you do not finish this exercise during the lab, show the instructor what you have done at the end of the lab and be sure to complete it in the next few days. If you have any questions, ask your lab instructor or a consultant immediately! They are in the lab to help you learn the material. 1 Matlab built-in functions... fun with Matlab Matlab provides numerous built-in variables and functions. For each line below, type the text in the Command Window and press < Enter > to see what happens. Is the result what you expect? Fill in the blanks below with the screen output for that line. % This is a comment--no action is executed by the computer % From this point on, read but do not type the text after the % symbol in a line. % Variables, constants, and simple calculations: a= 100 % Look at the Workspace Pane: a VARIABLE called a has been created b= 99 % Look at the Workspace Pane: a VARIABLE called b has been created format compact a/b % _____________________________ ans y= ans % _____________________________ format long y format short y p=(3*2)^2 q=(3*2)^2; % Did you type the semi-colon? Look at the Workspace Pane: q is % created but its value is not shown in the Command Window.

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern