離散點圖

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)
相關文章
相關標籤/搜索