Create a MATLAB function called plot that generates a 1x2 matrix of subplots where you plot the thickness of the paper as it grows with each fold.
2 views (last 30 days)
Show older comments
Create a MATLAB function called plot that generates a 1x2 matrix of subplots where you plotthe thickness of the paper as it grows with each fold. For the left subplot, use the plot function to plot on a linear scale. For the right subplot, use the semilogy function to plot on a semilog scale. For both subplots, add a line that marks the distance from the earth to the moon. Note that the syntax of using semilogy is identical to using plot. Assume the distance from the earth to the moon is 3:789 e 5 kilometers and the thickness of paper is 1 e-7 kilometers. Start at the rst fold, where n = 1 and thickness = 2 e-7. Then, use a for-loop to continue building the an array of the paper's thickness for 45 folds.
Answers (0)
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!