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
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
Get step-by-step solutions from verified subject matter experts
