Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
(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 componentwiseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started