Question: Could you please do this by using matlab Use the function input to ask the user for a number. If the number is negative, print

Could you please do this by using matlab  Could you please do this by using matlab Use the function

Use the function input to ask the user for a number. If the number is negative, print the word "negative" to the command window, otherwise display the number. Use the function input to ask the user for a number. If the number is negative or greater than 10, then print the expression "out of bounds", otherwise display the number. Use the function input to ask the user for a number. If the number is both positive and less than 2, then print the number, otherwise print the expression "Not what I want". Use the function input to ask the user for a vector. Display the vector. Use the function input to ask the user for a number. Display the following sentence: "You entered X." In this sentence, "X" should be replaced by the number entered by the user. Use the function input to ask the user for a vector. Compute the cube of each number. Do a formatted printing of a table containing the original numbers (in the user-selected vector) in the first column and the cubes in the second column

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!