Question: Using Matlab, please help me doing these questions (1) Turn the diary on (with a filename of your choosing) and begin your file with a

Using Matlab, please help me doing these questions

Using Matlab, please help me doing these questions (1) Turn the diary

(1) Turn the diary on (with a filename of your choosing) and begin your file with a comment line including both your name and "Lab 2". (i.e. On the first line, type "\% your name Lab 2"). Turn in the print out as well as the plot. (2) Define the vectors u=(5,7,1),v=(8,8,6),w=(0,5,3), and p= 4u2v2w (a) Compute the dot products: up,pv,uv, and uw. (b) Compute the length of vector p. (3) Consider the matrix A=15913261014371115481216 (a) Enter the matrix A by typing in all 16 elements directly. (b) Enter the matrix A by using the colon operator to enter each row. (Each row is in arithmetic progression!!) (c) Multiply the second row of A by 95, add it to the third row, and put the result back in the second row. Do this using one MATLAB statement. (4) Let A=2463694812B=473120679 (a) Calculate AB. (b) Calculate A times B componentwise

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!