Maximisation of a box cut on 4 sides

1 回表示 (過去 30 日間)
Jerin James
Jerin James 2014 年 6 月 3 日
回答済み: Sean de Wolski 2014 年 6 月 3 日
A piece of rectangular paper (20 × 30cm) is supplied to make a box of the largest possible volume, by cutting out the corners and folding up the sides. The cuts must be square (ie both sides are reduced by the same amount). How big should the cuts be to maximise the volume of the box?
Using the information above, we have the equation
V = (20 2x)(30 2x)(x)
a) Use Matlab to find the volume of the box with a range of values of x from 0 to 10 in steps of 0.001. [You may need to use the element-wise multiplication, “.*”, in your formula]

回答 (1 件)

Sean de Wolski
Sean de Wolski 2014 年 6 月 3 日
Something like:
V = @(x)-(20 - 2*x)*(30 - 2*x)*x
x = fminunc(V,0)

カテゴリ

Help Center および File Exchange3-D Volumetric Image Processing についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by