Question: Function and Vector operations. Define 2 vectors and name them vec 1 and vec 2 both with 3 elements. vec 1 = [ 1 ,

Function and Vector operations.
Define 2 vectors and name them vec1 and vec2 both with 3 elements. vec1=[1,2,3] and vec2=[4,5,6]
Calculate the dot product and the cross product of vec1 and vec2.
Write a function called BE1607_RESIT_Function.m that takes in 2 vectors and output the dot product (scalar product) of the two input vectors.
Test this on vec1 and vec2
Solving Linear Equations:
Consider the system of linear equations:
6x1+2x2=22
x1+4x2=11
Create the coefficient matrix A and the constant vector b.
Solve the system using the inverse matrix method in MATLAB.
Find the eigenvalues and eigenvectors of A.
Data Modelling and Plotting:
Type load polydata in MATLAB. This will load 4 arrays x,y,x1 and y1.
Plot the data with x1 on the horizontal axis and y1 on the vertical axis.
with grid lines, axis labels, a dotted red line style and title of your choice.
Add to the plot the line plotting x against y with a blue solid line.
Add a legend.
Function and Vector operations. Define 2 vectors

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 Programming Questions!