Question: Solve using MATLAB and use pesdocode 1. Write down the MATLAB command(s) needed to execute the following. (4 Points Total) a. In one command, use

Solve using MATLAB and use pesdocode
1. Write down the MATLAB command(s) needed to execute the following. (4 Points Total) a. In one command, use fprintf() to output the following message "The value of tan (53) is #. ###., where the value of tangent 53 is output to 3 decimal places. (2 Points) b. Write the commands to create a cell array called student containing the data: name, {array of current courses), and major. Next, write the MATLAB command to obtain the second course listed in the current courses for this student. Write code below for one student in your group. (2 Points) student second_course = 2. In lecture we discussed using the: (colon) to create a vector (start:increment:final). MATLAB has another function that creates a vector, linspace(). (4 Points Total) Describe linspace(). Use MATLAB help linspace. a. b. How is linspace() different from : (colon)? c. Create array C with 37 values that starts at -13 and ends at 7 using linspace(). C = d. Create array D with 37 values that starts at -13 and ends at 7 using the : (colon). The C and D arrays must be the same size (37) D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
