Question: matlab work Q1. Write a function which takes multiple inputs and returns multiple outputs. The inputs to the function are the radius and height of

matlab work  matlab work Q1. Write a function which takes multiple inputs and

Q1. Write a function which takes multiple inputs and returns multiple outputs. The inputs to the function are the radius and height of a cylindrical can. The outputs are the area of the top (or bottom) of the can and the volume of the can. Exercise this function either from a script or from within the command window Q2. Write a function which takes the letter 'a' or 'b' and if the character input was an a', it prints to the screen 'a was the input while for an input 'b', it prints 'b was the input. Any other character, it prints The character is out of scope'. Exercise this function either from a script or from within the command window

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!