Question: Name: For all programming assignments send me your (.m) files, I will run them locally. 1. Complete the following: R= a. Sphere1 V= Exercise Lect20

Name: For all programming assignments send me your (.m) files, I will run them locally. 1. Complete the following: R= a. Sphere1 V= Exercise Lect20 Due by next class Email to me as .m file(s) Write a MATLAB function that computes the volume of 3 different spheres, sphere 1, sphere 2, and sphere 3, and writes them to a text file Svol.txt, formatted nicely with units. Something like Sphere2 R= V= R= 3.14159..... A= 3.13401.... || b. Create a MATLAB function to approximate the decimal value of PI using the equation below. Your function should allow the user to input the number of iterations to be used. The output should report the approximated value and the reported value of 3.14159265358979 (use this value with 14 decimal places as PI) for comparison. Format the output for direct comparison. IT Sphere3 6 R= V=

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!