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

(a) (b) (c) 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] 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(-(x + Y2)) [7 marks] Write a MatLab function that accepts two position vectors in Cartesian space (x, y, z) and returns the dot and cross products of the vectors. [8 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
