class1a_matlab_activities_engr195(II)s10 - ENGR 19500(II)...

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

View Full Document Right Arrow Icon
ENGR 19500(II) – Spring 2010 Activity 1 Class 1a Activity 1: MATLAB Variables (Estimated Time: 15 minutes) This activity will familiarize you with variable assignments in MATLAB. 1. Solving engineering problems with MATLAB will require values to be assigned to variable names. MATLAB has rules for selecting these variable names. In the Command Window, type (only type the bold): >> Tool = 5 >> tool = 6.2222 >> who 2. You now have two variables in a name that would be spoken as "tool". To review the values stored in each variable name, just type the variable name in the Command Window. Type: >> tool >> Tool The variables available in the workspace can also be viewed in the Workspace window. Note that the values are different for "Tool" and "tool". MATLAB is case-sensitive, so mixing upper and lowercase letters will result in different variable names. TOOL, tOoL, TooL, tOOl, tooL, toOl, toOL are all different variable names. This can lead to confusion to you when debugging a program. Make sure your variable names are distinct. 3.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 4

class1a_matlab_activities_engr195(II)s10 - ENGR 19500(II)...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online