필터 지우기
필터 지우기

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 CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by