How do I plot a 3d surface over a specified domain?

7 ビュー (過去 30 日間)
Emily
Emily 2014 年 4 月 20 日
回答済み: Walter Roberson 2014 年 4 月 20 日
I apologise if this has been answered before but I cannot find the answer!
I want to plot the surface: 3a(b-a)^2 / 24b over the 'wedge' in the positive orthant with a \leq b.

採用された回答

Walter Roberson
Walter Roberson 2014 年 4 月 20 日
Create a rectangular grid that is the bounding box. For points inside the wedge, set the grid value to the expression you gave. For points outside the wedge, set the grid value to NaN. At the end, surf() the result.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by