Question: HELP PLEASE 1. (25 point) Write MATLAB codes using colon operators to create the following matrix A; Using a built-in function rand to generate a

HELP PLEASE
 HELP PLEASE 1. (25 point) Write MATLAB codes using colon operators

1. (25 point) Write MATLAB codes using colon operators to create the following matrix A; Using a built-in function rand to generate a random 3 x 2 matrix B, in which each element is between 0 and 5. And then write commands to multiply matrix A by B and assign to matrix C. Then sort rows of C based on the second column in a descending order and assign the sorted matrix to D. Finally, retrieve all the elements in the second column of the resultant matrix D, and assign the elements to E 2 1.1 0.2 4 7 10 2. According to the trajectory line, the distance (m) x=vcos(9)t; the height(m) yzyosin(9)t- gt2/2, where g-9.8 1) Write a MATLAB program to calculate the distance and height when time(t) is given by user. The initial velocity and elevation angle are given as 5m/s and 45 degree When you show the results, you need to show the sentence "The distance and height are ". (25) 2) When t increases from 0 to 1 second with 0.1 second interval, write a program to tabulate the results of Distance and Height (m) with the velocity and angel (degree) input by a user (30). Time(s) Distance(m) Height(m) 3) Given t is 0.2 second, the initial velocity is 2m/s, write a user-defined function program to calculate the initial 8 in degree when the height(m) can be input by a user (20)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!