This preview shows page 1. Sign up to view the full content.
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
- Spring '11