using contour plot to solve the problem

조회 수: 1 (최근 30일)
Dai Nguyen
Dai Nguyen 2021년 3월 14일
댓글: Dai Nguyen 2021년 3월 16일
Hi I want to use contour plot to find the minimum dimension of a can with the volume of 315, but I don't know how to do it. I'm sorry I'm pretty new to matlab
  댓글 수: 8
Adam Danz
Adam Danz 2021년 3월 14일
Yes, in the case of derivation, a smooth surface might be better than the 2D grid I suggested in my answer.
Dai Nguyen
Dai Nguyen 2021년 3월 16일

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

답변 (1개)

Adam Danz
Adam Danz 2021년 3월 14일
편집: Adam Danz 2021년 3월 15일
I assume you have an n-by-m matrix of costs for n heights and m radii.
I'd use heatmap or imagesc to create a gridded color display where x is can heights, y is radii (or the other way around) and the colorbar defines the cost.
  댓글 수: 1
Dai Nguyen
Dai Nguyen 2021년 3월 16일
yes it will cost about a quarter to produce 1 meter, the dimension that I calculate to minimize the cost but still keeping the same volume is 4.645m for both height and radius

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by