数据分类可视化matlab

function fenlei_da ta
da ta=[
    7.0  12.3  14.2  20.0  37.2  43.5  69.3  83.0  96.7  98.0  99.9 
    6.0  15.8  20.5  29.5  43.8  61.8  75.0  91.5  99.7  100.0  100.0 
    8.7  24.1  41.3  54.0  71.8  83.5  89.5  95.9  99.1  100.0  100.0 
    11.7  16.8  26.7  41.3  61.8  86.0  96.7  99.7  99.9  100.0  100.0 
    2.0  14.4  20.2  27.5  44.1  72.3  90.0  97.7  100.0  100.0  100.0 
    8.0  27.2  40.0  52.0  67.2  78.0  84.8  93.3  98.0  99.8  100.0 
    11.0  14.7  20.0  27.0  40.7  59.2  71.8  86.0  94.0  99.8  100.0 
    13.2  17.8  26.7  37.8  55.5  78.0  90.5  97.5  100.0  100.0  100.0 
    9.0  13.8  20.0  29.0  43.8  59.0  71.3  88.5  97.0  99.0  99.7 
    14.0  23.5  42.5  60.5  79.5  94.0  99.2  99.5  99.9  100.0  100.0 ];
[M,N]=size(da ta);%M行;N列
da ta(:,[1:N])=da ta(:,[N:-1:1]);
for i=1:M
    if i==1
        plot(da ta(i,:),'r*-'),hold on;
    end
    if i==2
        plot(da ta(i,:),'rp:'),hold on;
    end
    if i==3
        plot(da ta(i,:),'ks-'),hold on;
    end
    if i==4
        plot(da ta(i,:),'g>-'),hold on;
    end
    if i==5
        plot(da ta(i,:),'g-x'),hold on;
    end
    if i==6
        plot(da ta(i,:),'g<-.'),hold on;
    end
    if i==7
        plot(da ta(i,:),'rh-'),hold on;
    end
    if i==8
        plot(da ta(i,:),'r+:'),hold on;
    end
    if i==9
        plot(da ta(i,:),'ro-.'),hold on;
    end
    if i==9
        plot(da ta(i,:),'r.-.'),hold on;
    end  
end
legend('样本混1-14','样本混1-10','粘2-粉1','样本31-14','样本30-11',...
    '粘2-东方首府','粉土1号','样本26-10','样本29-8','鄄城机淤')
xlabel('粒径级(mm)')
ylabel('小于某粒径土重百分数(%)')
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值