Question: answer in matlab please 1. 1. Generate a MATLAB script file to calculate the surface area and volume of a rectangular pyramid with height of
1. 1. Generate a MATLAB script file to calculate the surface area and volume of a rectangular pyramid with height of 0.5m that prompts for dimensional user inputs. Test your script file for the following cases: a) Base is a square with side length =8cm b) Base is rectangular with length =24cm, width =5cm Formulas to be used: SF=(2PBh)+LBWbVp=3LbWbh Where Sp= Pyramid surface area PB= Base perimeter VP= Pyramid Volume LB= Length of the pyramid base WB= Width of the pyramid base
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
