CSE 155N Lab 2 Assignment

CSE 155N Lab 2 Assignment - 2 A vector can be represented...

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

View Full Document Right Arrow Icon
CSE 155MN Lab-2 Create a script to accomplish the directions of each question. Hand in each script through the web-handin. http://cse.unl.edu/~handin/ Due: Monday, September 5 at 11:59 1.Create a variable ftemp to store a temperature in degrees Fahrenheit (F). Convert this to degrees Celcius (C) and Store the result in a variable ctemp . The conversion factor is C= (F-32)*5/9. Save the program as temperature.m
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 2. A vector can be represented by its rectangular coordinates x and y or by its polar coordinates r and Θ . The relationship between them is given by the equations: x = r * cos(Θ) y = r * sin(Θ) Assign the values for the polar coordinates to variables r and theta . Then, using these values, assign the corresponding rectangular coordinates to variables x and y . Save the program as polar.m...
View Full Document

This note was uploaded on 02/20/2012 for the course CSCE 155N taught by Professor Sandeep during the Spring '11 term at UNL.

Ask a homework question - tutors are online