The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 1 Day Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
MATLAB question:
Write a simple script that will calculate the volume of a hollow sphere,
4pi/3(r0^3-ri^3)
where ri is the inner radius and r0 is the outer radius. assign a value to a variable for the inner radius, and also assign a value to another variable for the outer radius. then, using these variables, assign the volume to a third variable and include comments in the script.
Using r0= 8.5, and ri=6.5 to do calculation, and test your script.
Then,rewrite the script in problem 6 as a function. The function has two input arguments, ri and r0, and one output argument, volume. Using r0= 8.5, and ri=6.5 to do calculation, and test your script.
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll