Question: 1. In the provided space type a command or a script that you will use to do the following: (You should test your script in

 1. In the provided space type a command or a script

1. In the provided space type a command or a script that you will use to do the following: (You should test your script in the command window to see whether it gives the desire result. Of course, you have to create your own input.) Show commands that will calculate the volume of a box that has square base with side 4 cm and height of 1.5 cm. (Use b as variable for base side and h for the height.) (2 pts) a. (2 pts) b. Use fprintf command to display the result of part a. You command should have following output and must use variables you used in part a. The volume of a box with square base with side 4 cm and height 1.5 cm is 24 cubic cm. (2 pts) c. Remove the 4th component of a vector B- [-8, 6, 2, 0, 5, 7] (2 pts) d. Create a vector, C, with length 5 whose entries are all 0 Display all components of a vector D that are less than or equal to 3. For example: if D (3 pts) e. -[0,-1, 5, 3], the answer will be Q-1 3 (3 pts) f. Create a vector F with length 15 whose entries are random numbers between 0 and 1, then multiply by 3, name the new vector twoF. (Show the commands that hides ouput,)

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!