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)
离散点图

相关文章:

  • 2021-11-17
  • 2021-11-07
  • 2021-08-27
  • 2021-05-30
  • 2021-06-28
  • 2021-08-20
  • 2021-05-20
  • 2022-12-23
猜你喜欢
  • 2021-10-06
  • 2021-05-02
  • 2022-02-08
  • 2022-12-23
  • 2021-12-09
  • 2021-10-19
相关资源
相似解决方案