using contour plot to solve the problem

1 Ansicht (letzte 30 Tage)
Dai Nguyen
Dai Nguyen am 14 Mär. 2021
Kommentiert: Dai Nguyen am 16 Mär. 2021
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 Kommentare
Adam Danz
Adam Danz am 14 Mär. 2021
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 am 16 Mär. 2021

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Adam Danz
Adam Danz am 14 Mär. 2021
Bearbeitet: Adam Danz am 15 Mär. 2021
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 Kommentar
Dai Nguyen
Dai Nguyen am 16 Mär. 2021
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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by