using contour plot to solve the problem
이전 댓글 표시
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
darova
2021년 3월 14일
Can you describe the form of a can? DO you have a picture?
Dai Nguyen
2021년 3월 14일
Adam Danz
2021년 3월 14일
What you mean by minimum dimension? A can has a height and a radius or diamter. How would color be used to find the minimum of those two dimensions?
Dai Nguyen
2021년 3월 14일
Dai Nguyen
2021년 3월 14일
darova
2021년 3월 14일
I think you need simple surf. Can you show your calculations?
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
2021년 3월 16일
답변 (1개)
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.
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
