vfield_color

Plot a 2-D vector field, where color is defined by a colormap and indicates vector magnitude.

이 제출물을 팔로우합니다

The function VFIELD_COLOR plots 2-D velocity vectors with colors defined by a colormap.

Syntax:
VFIELD_COLOR(X,Y,U,V,SCALE,CMAP)

Inputs:
X, Y Arrows origin, N-D arrays
U, V Current components, N-D arrays
SCALE Scalar value to set vector lengths
CMAP Colormap, N x 3 array of RGB values

Example:
image = zeros(100);
x = (rand(1,50) .* 80) + 10;
y = (rand(1,50) .* 80) + 10;
u = rand(1,50) .* 100;
v = rand(1,50) .* 100;
cmap = jet(64);
scale = 10;
vfield_color(image,x,y,u,v,scale,cmap)

See also QUIVER, FEATHER, VFIELD

** The current implementation doesn't return handles to the graphics objects created by vfield.

인용 양식

DS (2026). vfield_color (https://kr.mathworks.com/matlabcentral/fileexchange/23352-vfield_color), MATLAB Central File Exchange. 검색 날짜: .

도움

도움 받은 파일: vfield

도움 준 파일: quiverwcolorbar

카테고리

Help CenterMATLAB Answers에서 Vector Fields에 대해 자세히 알아보기

일반 정보

MATLAB 릴리스 호환 정보

  • 모든 릴리스와 호환

플랫폼 호환성

  • Windows
  • macOS
  • Linux
버전 퍼블리시됨 릴리스 정보 Action
1.0.0.0