请问已知xyz的值能用matlab绘制一个散点图吗
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/10/05 07:28:54
请问已知xyz的值能用matlab绘制一个散点图吗
help scatter3
SCATTER3 3-D Scatter plot.
SCATTER3(X,Y,Z,S,C) displays colored circles at the locations
specified by the vectors X,Y,Z (which must all be the same size).The
area of each marker is determined by the values in the vector S (in
points^2) and the colors of each marker are based on the values in C.S
can be a scalar,in which case all the markers are drawn the same
size,or a vector the same length as X,Y,and Z.
When C is a vector the same length as X,Y,and Z,the values in C
are linearly mapped to the colors in the current colormap.
When C is a LENGTH(X)-by-3 matrix,the values in C specify the
colors of the markers as RGB values.C can also be a color string.
SCATTER3(X,Y,Z) draws the markers with the default size and color.
SCATTER3(X,Y,Z,S) draws the markers with a single color.
SCATTER3(...,M) uses the marker M instead of 'o'.
SCATTER3(...,'filled') fills the markers.
SCATTER3(AX,...) plots into AX instead of GCA.
H = SCATTER3(...) returns handles to scatter objects created.
Use PLOT3 for single color,single marker size 3-D scatter plots.
Example
[x,y,z] = sphere(16);
X = [x(:)*.5 x(:)*.75 x(:)];
Y = [y(:)*.5 y(:)*.75 y(:)];
Z = [z(:)*.5 z(:)*.75 z(:)];
S = repmat([1 .75 .5]*10,numel(x),1);
C = repmat([1 2 3],numel(x),1);
scatter3(X(:),Y(:),Z(:),S(:),C(:),'filled'),view(-60,60)
See also scatter,plot3.
SCATTER3 3-D Scatter plot.
SCATTER3(X,Y,Z,S,C) displays colored circles at the locations
specified by the vectors X,Y,Z (which must all be the same size).The
area of each marker is determined by the values in the vector S (in
points^2) and the colors of each marker are based on the values in C.S
can be a scalar,in which case all the markers are drawn the same
size,or a vector the same length as X,Y,and Z.
When C is a vector the same length as X,Y,and Z,the values in C
are linearly mapped to the colors in the current colormap.
When C is a LENGTH(X)-by-3 matrix,the values in C specify the
colors of the markers as RGB values.C can also be a color string.
SCATTER3(X,Y,Z) draws the markers with the default size and color.
SCATTER3(X,Y,Z,S) draws the markers with a single color.
SCATTER3(...,M) uses the marker M instead of 'o'.
SCATTER3(...,'filled') fills the markers.
SCATTER3(AX,...) plots into AX instead of GCA.
H = SCATTER3(...) returns handles to scatter objects created.
Use PLOT3 for single color,single marker size 3-D scatter plots.
Example
[x,y,z] = sphere(16);
X = [x(:)*.5 x(:)*.75 x(:)];
Y = [y(:)*.5 y(:)*.75 y(:)];
Z = [z(:)*.5 z(:)*.75 z(:)];
S = repmat([1 .75 .5]*10,numel(x),1);
C = repmat([1 2 3],numel(x),1);
scatter3(X(:),Y(:),Z(:),S(:),C(:),'filled'),view(-60,60)
See also scatter,plot3.
请问在MATLAB中绘制一个不规则多边形,在三维坐标系下,怎么求这个不规则多边形的面积啊?多边形顶点已知
知道点的3个坐标XYZ的值的文档 怎样用MATLAB将文档里所有的点绘制成三维散点图
matlab 已知矩形的中心点,长和宽 ,试绘制一个矩形
已知有xyz三组空间坐标的txt文件,怎么才能用matlab导入并自动生成函数图像,求详细步骤,不胜感激.
请问怎么用matlab绘制已给数据的直方图
matlab已知点的坐标,绘制三维图
已知xyz画matlab三维图
matlab 中 等高线的绘制
请问用MATLAB怎么绘制bezier曲线
matlab中,在三维坐标系xyz下,如何绘制 x=1这个平面
已知C 为一个常数,这个能用matlab求吗
matlab绘制一个三维函数,急