![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Matlab
Leafnode
这个作者很懒,什么都没留下…
展开
-
rand('state',0)
本篇博文参考:http://ilovematlab.cn/thread-57952-1-1.htmlrand('state',0)Resets the generator to its initial state. rand('state',s)表示随机产生数的状态state,一般情况下不用指定状态。但是有的书籍作者为了让读者能够看到和他书本的同样结果,采用了设置state,rand('s原创 2014-03-27 22:15:54 · 5453 阅读 · 0 评论 -
利用GPU实现Matlab加速
首先介绍两个函数gpuArray和gather。具体用法可以在Matlab命令窗口中查询:doc gpuA原创 2014-04-15 00:24:15 · 1575 阅读 · 0 评论 -
Matlab中关于图像显示的几个命令
1.clf2.axes3.colormap4.imagesc原创 2014-04-25 21:44:20 · 2952 阅读 · 0 评论 -
计算曲线面积
介绍连个函数:原创 2014-05-13 20:03:55 · 4521 阅读 · 0 评论 -
rand和randn函数
>> rand( rows, cols ) % Unif[0,1]>> randn( rows, cols) % Norm(0, 1)原创 2014-07-26 16:45:21 · 943 阅读 · 0 评论 -
hist函数
我们在生成随机数之后经常画出频率分布直方图来进行模拟,使用函数hist。具体的语法是:hist(data,nbins);data是待统计的向量,nbins是需要划分的条数(默认为10)。原创 2014-08-21 16:15:37 · 3509 阅读 · 0 评论 -
Matlab和Python通过txt文档转换数据
(1) 将Python中的数据存到txt文档中import numpy as npnp.savetxt("/.../test.txt", traindata)(2) Matlab将.mat数据存到txt文档中save('/.../test.txt','traindata','-ascii');(3) Python读取txt数据traindata=np.loadtxt('/....原创 2018-10-11 04:33:47 · 470 阅读 · 0 评论 -
Matlab实现二维的最小封闭球
转自https://www.mathworks.com/matlabcentral/fileexchange/34767-a-suite-of-minimal-bounding-objects/content/MinBoundSuite/minboundcircle.m function [center,radius] = MEB(x,y,hullflag)% minboundcirc...转载 2017-01-09 08:25:47 · 655 阅读 · 0 评论