赞
踩
贴个官方说明:
散点图 - MATLAB scatter- MathWorks 中国
然后是我的代码:
- x=data(:,10);
- y=data(:,9);
- c=data(:,6);
- sz = 7; %点大小
- scatter(x,y,sz,c,'filled')
- h =colorbar; %渐变色注释栏
- xlabel('torque per volumn');
- ylabel('efficiency')
- set(get(h,'label'),'string','statorDia(mm)');%给颜色栏命名
- saveas(gcf,'opt.png')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。