How to solve following task?
Ältere Kommentare anzeigen
Hello,
I have a problem and can't think of the solution.
Lets say:
I have an paper roll with the width of 60cm. I need to cut the rool in to 3 parts of: 28, 20 and 15cm + left over (if any)
I need to find all the variations of the cuts and the left overs. (from the image (x1,x2,x3,x4,xn..))
I think that I would need to make an equation 28A+20B+15C+D=60 , while D<15 . D=[0:1:14]
But only integers should be used.
Any help would be appreciated.
Thank you.

Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!