Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands-On Database

Authors: Steve Conger

2nd Edition

0133024415, 978-0133024418

More Books

Students also viewed these Databases questions