
matlab使用小记
yannwpu
这个作者很懒,什么都没留下…
展开
-
matlab不能保存变量解决方法
在使用matlab保存结构体、大数组等等的变量时,matlab总是提示 Warning: Variable 'layer' cannot be saved to a MAT-file whose version is older than 7.3.遇到这个问题应该如何解决呢。一般会有这样的提示 To save this variable, use the -v7.3 switch.意思原创 2014-01-05 10:03:20 · 8280 阅读 · 0 评论 -
matlab hist函数的使用
histogram是一个在图像上应用广泛的一个统计工具,bag-of-word,spatial pymarid matching等等都是基于histogram的。那么如何去做到有效的统计,而不去自己写很长很慢的循环完成这项工作呢?matlab提供了一个非常便利的函数:hist下面将得到hist的一些函数用法:设数据为10000个正太分布:y = randn(10000,1);区间从-4到4原创 2014-01-17 21:08:44 · 86739 阅读 · 4 评论 -
matlab随机数
转自:http://kalmanfans.is-programmer.com/posts/31988.html1,rand 生成均匀分布的伪随机数。分布在(0~1)之间 语法:rand(m,n)生成m行n列的均匀分布的伪随机数 rand(m,n,'double')生成指定精度的均匀分布的伪随机数,参数还可以是'single' r转载 2014-04-22 19:18:07 · 1112 阅读 · 0 评论