随笔分类 -  matlab

mean函数
摘要:一直不理解这个调用MEAN(X,DIM) takes the mean along the dimension DIM of X经过试验发现,维指什么呢。DIM=1,按列求平均,DIM=2,按行求平均,DIM=3,按第三维求平均 阅读全文

posted @ 2013-09-24 11:04 zjgtan 阅读(1473) 评论(0) 推荐(0)

matlab 矩阵运算技巧
摘要:1、a=a(:)作用:将矩阵转化成列向量a=[a11 a12 a13 a=[a11 a21 a12 a22 a13 a23]^T a21 a22 a23] ====>所以有T=max(a(:))找到矩阵中的最大值,否则找到的是各列的最大值 阅读全文

posted @ 2013-06-23 10:28 zjgtan 阅读(280) 评论(0) 推荐(0)

matlab 设置坐标轴的有效数字
摘要:x=1:8;subplot(2,2,1)plot(x)%tick style 0(auto)subplot(2,2,2)plot(x)set(gca,'xtick',[1 3 6 8]);%style 指定set(gca,'ytick',[]);%style 2清空subplot(2,2,3)plot(x)set(gca,'xtick',[1 3 6 8]);set(gca,'xticklabel',sprintf('%03.4f|',get(gca,'xtick')));%style 3有效位数s 阅读全文

posted @ 2013-03-23 16:07 zjgtan 阅读(4554) 评论(0) 推荐(0)

导航