Compute the inner product of two matrices compute the cross


Lab - Introduction to MATLAB, Signals and Digital Signal Processing

Theory:

MATLAB stands for Matrix Laboratory. It is a multipurpose software suite for numerical computing. MATLAB allows matrix manipulation, plotting of functions and data, implementation of algorithms and can interface with other programming languages.

MATLAB is an interactive, matrix-based system for scientific and engineering numeric computation and visualization. It allows for the computation of complex numerical problems and their solutions in a fraction of the time required in other programming languages.

Lab:
1. Create an vector.
2. Create a matrix.
3. Create a 5x1 vector of zeros. Create a 1x5 vector of random numbers.
4. Transpose a matrix.
5. Compute the inner product of two matrices. Compute the cross product of two matrices. Compute the inverse of a matrix.
6. Compute the element wise multiplication of a matrix and a scalar.
7. Concatenate two matrices.
8. Create a vector of complex numbers.
9. Multiply a row of a matrix with an element of that same matrix.
10. Generate a vector of values ranging from 0 to 500 with 100 elements.
11. Create a 2D plot of the sine function between 0 and 2Π.
12. Create a 3D plot of a surface by creating a grid along the X and Y axes and plotting the Z-coordinate according to the exponential function.
13. Write a script to plot a vector of random data. Draw a horizontal line at the mean. Save the script and run it from the command line.
14. Write another script that calculates the mean of five samples of data from a vector of random data. Calculate the overall mean. Use a for loop to perform the calculations. For each iteration of the loop print out the intermediate results. Use an if..else control block to display the results depending on whether the mean of the samples is less than, greater than or equal to the overall mean.
15. Create a function that calculates the sum of an arbitrary number of sinusoidal terms. Call this function from the MATLAB command line or in a MATLAB script (.m).

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Compute the inner product of two matrices compute the cross
Reference No:- TGS02520283

Expected delivery within 24 Hours