csf3

Color visualization of 3-vector's orientation on 2-D surface
8 Downloads
Updated 7 Nov 2021

View License

csf3 Color visualization of 3-vector's orientation on 2-D surface
csf3(X,Y,Z,U,V,W)
csf3(ax, __ )
csf3( __ , SeedColors )
csf3( __ , Alpha )
SeedColors is six RGB values in 6-by-3 matrix form.
Default colors are [1 0 0;0 1 0;0 0 1;0 1 1;1 0 1;1 1 0]::[R;G;B;C;M;Y]
Each color corresponds to +x, +y, +z, -x, -y, -z directions.
Surface transparency: Alpha is either a scalar or array of two elements.
Alpha(1) = FaceAlpha
Alpha(end)= EdgeAlpha
*If the size of U,V,W is m-by-n, then the size of X,Y,Z can be either
m-by-n or m+1-by-n+1.
For the latter case, the vector (u,v,w) at (i,j)-site is considered to be
on the surface element of [x(i:i+1,j:j+1),y(i:i+1,j:j+1),z(i:i+1,j:j+1)]
Displaying spherical colormap
csf3()
csf3(SeedColors)
csf3(ax, __ )

Cite As

Kanghyun Chu (2024). csf3 (https://www.mathworks.com/matlabcentral/fileexchange/101639-csf3), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0