Question: (a) Write the MatLab code to calculate and plot the function y sinx/x, with due attention to undefined points, and making necessary changes to the

(a) Write the MatLab code to calculate and plot the function y sinx/x, with due attention to undefined points, and making necessary changes to the output vector to cater for these undefined points. Label the axes, insert a title for the graph, apply grid and choose suitable plot properties for the graph. [10 marks] (b) Write the MatLab code to plot the 3D surface defined by the equation, with X and Y ranging from -10 to 10: Z- cos(X),sin(Y).exp(x2+ Y2) 17 marks] write a MatLab function that accepts two position vectors in Cartesian space (x, 18 marks] c y, z) and returns the dot and cross products of the vectors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
