lab01_tasks

lab01_tasks - ENGR 12600 Spring 2009 Laboratory 1 Task 1...

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

View Full Document Right Arrow Icon
ENGR 12600 – Spring 2009 Task 1 Laboratory 1 Task 1 MATLAB Variables (Estimated Time: 10 minutes) This task will familiarize you with variable assignment 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.
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.

This note was uploaded on 02/22/2012 for the course ENGR 126 taught by Professor Oakes during the Spring '08 term at Purdue.

Page1 / 3

lab01_tasks - ENGR 12600 Spring 2009 Laboratory 1 Task 1...

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