フィルターのクリア

How to plot a surface?

3 ビュー (過去 30 日間)
Pasquale
Pasquale 2018 年 2 月 23 日
回答済み: Bhuvnesh Singh 2018 年 2 月 26 日
Hi, I would to plot a surface from the coordinates of my points given by three vectors X,Y,Z. Is it possible? Which function should I use? The points in the plane x,y are not in a regular grid

回答 (1 件)

Bhuvnesh Singh
Bhuvnesh Singh 2018 年 2 月 26 日
You can use function surf, where surf(X,Y,Z) creates a three-dimensional surface plot. The function plots the values in matrix Z as heights above a grid in the x-y plane defined by X and Y. The function also uses Z for the color data, so color is proportional to height.
For more information on surf function follow the below link: https://www.mathworks.com/help/matlab/ref/surf.html

カテゴリ

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