Matlab 矩阵处理小结(3)-将多个errorbar图像绘制到一个图像上
来源:互联网 发布:pl sql developer mac 编辑:程序博客网 时间:2024/05/27 03:29
files = dir('*.log');
for i=1:length(files)
% for i=1:24
File =files(i).name;
a=importdata(File);
b=reshape(a,6,12)';%calculate tramsportation to make std calculation easy
kth(:,:,i)=b;
end
for i=1:24
mymean=mean(kth(:,:,i));
mystd=std(kth(:,:,i));
mymedian=median(kth(:,:,i));
% myresult(:,:,1)=cat(2,myresult(:,:,1),mymean)
% myresult(:,:,2)=cat(2,myresult(:,:,2),mystd)
% a=cat(2,a,mymean);
% b=cat(2,b,mystd);
y(i,:)=mymean;
e(i,:)=mystd;
m(i,:)=mymedian;
end
x=[1:1:24];
x1=errorbar(x,y(:,1),e(:,1),':r*');
% legend('x1','type1')
hold on
x2=errorbar(x,y(:,2),e(:,2),'--bo');
% legend('x2','type2')
hold on
x3=errorbar(x,y(:,3),e(:,3),'g');
% legend('x3','type3')
hold on
x4=errorbar(x,y(:,4),e(:,4),'y');
% legend('x4','type4')
hold on
x5=errorbar(x,y(:,5),e(:,5),':ks');
% legend('x5','type5')
hold on
x6=errorbar(x,y(:,6),e(:,6),'m');
% legend('x6','type6')
hold on
legend('type1','type2','type3','type4','type5','type6')
title('V1')
xlabel('Hour')
ylabel('Message')
for i=1:length(files)
% for i=1:24
File =files(i).name;
a=importdata(File);
b=reshape(a,6,12)';%calculate tramsportation to make std calculation easy
kth(:,:,i)=b;
end
for i=1:24
mymean=mean(kth(:,:,i));
mystd=std(kth(:,:,i));
mymedian=median(kth(:,:,i));
% myresult(:,:,1)=cat(2,myresult(:,:,1),mymean)
% myresult(:,:,2)=cat(2,myresult(:,:,2),mystd)
% a=cat(2,a,mymean);
% b=cat(2,b,mystd);
y(i,:)=mymean;
e(i,:)=mystd;
m(i,:)=mymedian;
end
x=[1:1:24];
x1=errorbar(x,y(:,1),e(:,1),':r*');
% legend('x1','type1')
hold on
x2=errorbar(x,y(:,2),e(:,2),'--bo');
% legend('x2','type2')
hold on
x3=errorbar(x,y(:,3),e(:,3),'g');
% legend('x3','type3')
hold on
x4=errorbar(x,y(:,4),e(:,4),'y');
% legend('x4','type4')
hold on
x5=errorbar(x,y(:,5),e(:,5),':ks');
% legend('x5','type5')
hold on
x6=errorbar(x,y(:,6),e(:,6),'m');
% legend('x6','type6')
hold on
legend('type1','type2','type3','type4','type5','type6')
title('V1')
xlabel('Hour')
ylabel('Message')
0 0
- Matlab 矩阵处理小结(3)-将多个errorbar图像绘制到一个图像上
- Matlab矩阵处理小结(2)-读数据求均值和中位数 绘制errorbar图
- matlab图像处理小结
- Matlab图像处理小结
- Matlab图像处理小结
- Matlab图像处理小结
- Matlab图像处理小结
- matlab图像处理函数小结
- matlab图像处理命令小结
- 怎样用MATLAB将矩阵输出为图像并存到硬盘上-图像保存到硬盘!
- MATLAB图像处理基础知识3 稀疏矩阵变全矩阵full 保存矩阵到txt文件save
- 图像处理小结3
- matlab绘制一元函数图像
- MATLAB二维图像绘制
- Matlab---绘制图像
- 图像绘制到屏幕上的原理。
- matlab 图像处理在图像上标记网格
- 【MATLAB】一个图像处理的小作业
- ios 应用中直接跳转到指定app页面 或者 app 评价页面 的方法
- [Clojure] A Room-Escape game, playing with telnet and pure-text commands - Part 1
- 关于Cocos2d 开发中有关精灵、精灵帧、精灵帧缓存、精灵表单以及plist文件之间的关系
- 编写RESTful Web服务的文档
- SQLServer 全文检索(full-text)语法
- Matlab 矩阵处理小结(3)-将多个errorbar图像绘制到一个图像上
- 版本化RESTful Web服务
- REST 概述
- URI设计
- 最长字符串链接
- 程序员生存手册的书摘
- scheme set-car! 模拟
- 选择资源粒度
- 网络编程学习笔记(RES_USE_INET6解析器选项)