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

answer in matlab please answer in matlab please 1. 1. Generate a MATLAB script file to

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

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!