Question: This is a homework for MATLAB. Please answer using MATLAB functions and parameters. The answers are to be submitted as a .m script. Don't just
This is a homework for MATLAB. Please answer using MATLAB functions and parameters. The answers are to be submitted as a .m script. Don't just list final answers. Search this paragraph to find other similar questions to answer please.


8 Answers are to be reported as pX= where X is the problem number. * For example the answer to problem i should be reported as pl- $ if it is a single part question, and pla= if it is a multipart $ question. This is how to report your answer for a single part question pl = sind (180); * This is how to report your answer for a multi-part question p2a = exp(-2*pi); p2b = fix (2*pi); p2c = mean (1:5); p2d = 'my answer is ...'; Problem 5: Use the matrix mat B below to perform the following exercises. matB = a 7/4 2/7] 2/2 /5 7/8 2/3 1/6 7/9 a) Write the first column of matrix matB into string p5a using a field width of 6 characters with 4 decimal places for each element. The string must show a column vector. b) Write the middle row of matrix matB into string p5b using a field width of 5 char- acters with 3 decimal places for each element. The string must show a row vector. c) Write matrix matB into string p5c using a field width of 16 characters with 14 decimal places. d) Write matrix mat B into string p5d using %e having a field width of 11 characters with 5 decimal places
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
