フィルターのクリア

How can I change fsurf color according to a third function

3 ビュー (過去 30 日間)
Andrea Parizzi
Andrea Parizzi 2017 年 6 月 4 日
編集済み: Andrea Parizzi 2017 年 6 月 8 日
Hi,I'm looking for a way to change the color of "fsurf" surfaces according to another function (that's not the one that gives ZData). What I'd like to do is plotting a 3D graph of the absolute value of a complex function and painting it with it's phase.
With "surf" is simple 'cause I can specify the "C" field (Color for each vertex) after the axes functions: I'd define a grid of x and y and then
z = complex(x,y);
fz = some function of z
surf(x,y,abs(fz),angle(fz),'EdgeColor','none');
colormap(hsv)
...
Is there something like this for "fsurf"? Thank you,Andrea.
  3 件のコメント
Stephen23
Stephen23 2017 年 6 月 5 日
編集済み: Stephen23 2017 年 6 月 5 日
@KSSV: MATLAB has a set of functions that plot function handles (such as fsurf, which creates a surface like surf does with numeric data, fmesh, fplot, fplot3, etc). These functions automagically generate an appropriate set of independent data points to plot the function over, such that the main details of the plot are shown. See more of these functions here:
KSSV
KSSV 2017 年 6 月 5 日
Okay introduced in 2016a....I am using a lower version.

サインインしてコメントする。

回答 (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