Question: In Problem 2 . 1 6 , you created a spreadsheet for calculating the thickness of a typical sheet of paper, 0 . 0 0

In Problem 2.16, you created a spreadsheet for calculating the thickness of a typical sheet of paper, 0.004 inches, which is folded multiple times. After one fold, the thickness is doubled to 0.008 inches, after two folds, it is doubled again to 0.016 inches, and so on. Write a MATLAB program to determine the number of folds necessary to achieve a theoretical thickness of:
a.1 inch
b.1 mile
c.The distance from Earth to the moon
Do not calculate the answer using the log2 function. Set up a loop to count the number of folds until the desired thickness is achieved.
Execute the diary command (turn on diary logging) for a new diary file. Use appropriate comments in the script file. For part c., use a value of 238,855 mi. Turn off diary logging. Submit the diary file and the script file.

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!