离散点图

x=[1 2 3]; y=repmat(x,9,1);%将x矩阵扩展 m=linspace(1,100,numel(y));% numel(y) 输出y矩阵中所有元素的个数 n=y( : );%将y展开成一维矩阵 stem(m,n) scatter(m,n)
相关文章
相关标签/搜索