14-440-127_20Recitation_201_20Problems

14-440-127_20Recitation_201_20Problems - 14:440:127...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
14:440:127 Introduction to Computers for Engineers Recitation 1 - Problems for students to attempt *Use Matlab to find the sum of 5, 2 squared, and 4. *Set the variable matlabvariable to equal the difference of 453 and (4 to the third power). Then, on the next line, increase matlabvariable by 15. *Which of the following variable names are permitted? 7up School-of-Engineering Rutgers for Rutgers_University sin *Create a bunch of variables (some with decimals, some with character arrays i.e. x = ‘hello’ )…. and then use the whos command to verify what variables have been defined. Then, use the delete command to clear any one of the variables. *Run the following two commands: 1) x = 56; 2) y = 87; Now, switch the values of x and y. *Answer the problem above in an m-file and save it as firstrecitation.m on the Desktop. Add the desktop to Matlab’s path and run your file by typing “firstrecitation” in the command window. *Let ranking = 1.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/29/2012 for the course 440 127 taught by Professor Blase during the Fall '09 term at Rutgers.

Ask a homework question - tutors are online