A rectangular printed page with sides of lengths a and b is designed to have a p
ID: 3645205 • Letter: A
Question
A rectangular printed page with sides of lengths a and b is designed to have a printed area of 60 in. 2 and margins of 1. 75 in. at the top and bottom and 1. 2 in. at both sides. Write a MATLAB program that determine the dimensions of a and b such that the overall area of the page will be as small as possible. In the program define a vector a with values ranging from 5 to 20 with increments of 0. 05. Use this vector for calculating the corresponding values of b and the overall area of the page. Then use MATLAB s built-in function min to find the dimensions of the smallest page.Explanation / Answer
%width of the printed space=b-2.4 %length of printed space=a-3.5 a=[5:0.05:20]; b=(60./(a-3.5))+2.4; c=a.*b; [d,i]=min(c) amin=a(i) bmin=b(i)
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.