CSE 155N Lab 4 Assignment

CSE 155N Lab 4 Assignment - Use units while using input and...

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

View Full Document Right Arrow Icon
CSE 155MN (Lab-4) 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 19 at 11:59 pm Activity 1: Create a program name distance.m with the following requirements: Create a vector called pointone to store x and y coordinates of a point, say (-4,5). Prompt user for input (accept input only in vector form [x, y]). Create another vector called pointtwo to store x and y coordinates of second point say, (2,3). Prompt user for input (accept input only in vector form [x, y]). Write MATLAB code to find the distance between two points. The formula for finding distance between two points (x1 ,y1) and (x2, y2) is Display the result in the format - - - - - . - - - -
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Use units while using input and output statements. Block all unnecessary output by using semicolon. You must comment your code well to receive full credit. Handin distance.m Activity 2: Solving simple mathematical problems. Think of System of linear equations. Write a program that prompt user to enter values for a1, b1, c1, d1, a2, b2, c3, d3 (in matrix form). And display the values of x, y and z. Save your file with name of cramer.m . Your program should be with proper documentation to receive full credits. a1x+b1y+c1z=d1 a2x+b2y+c2z=d2 a3x+b3y+c3z=d3 Hint: LM=N, then M=L\N You should accept input in matrix form, and display x, y and z separately. Hand in your cramer.m...
View Full Document

Ask a homework question - tutors are online