MATLAB CODE TO FOR THE FOLLWING QUESTION

조회 수: 1 (최근 30일)
ASHOK VARDHAN
ASHOK VARDHAN 2019년 8월 13일
댓글: Steven Lord 2019년 8월 13일
you are designing a rectangular page to contain 60 inch^2 of printing with a 4 inch margin at the top and bottom and a 2 inch margin at each side. what overall dimensions will minimize the amount of paper used?
  댓글 수: 6
Geoff Hayes
Geoff Hayes 2019년 8월 13일
Ashok's answer moved here
this is the error i am getting
Error in solve (line 357)
warnIfParams(parameters, conditions);
Error in matlab (line 8)
[d]=solve(e);
behind this line e= diff(e, b) == 0; the meaning is to get a an equation by differentiating e with respect to b and solve to it
Steven Lord
Steven Lord 2019년 8월 13일
Ashok, that doesn't look like the full text of the error message. Copy and paste all the text displayed in red. The exact text of the error message likely will be useful in determining the exact cause of the problem and how to correct it.
And just stylistically: while calling your script matlab.m shouldn't cause any problems, I recommend using a more descriptive and more easily discoverable name. Something like codeForProblem2.m would more clearly indicate the code's purpose at a glance in your OS's file system UI.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by