Matlab
argansos
这个作者很懒,什么都没留下…
展开
-
Matlab命令汇总
一、常用对象操作:除了一般windows窗口的常用功能键外。1、!dir 可以查看当前工作目录的文件。 !dir& 可以在dos状态下查看。2、who 可以查看当前工作空间变量名, whos 可以查看变量名细节。3、功能键:功能键 快捷键 说明方向上键 Ctr转载 2011-09-08 16:12:55 · 1695 阅读 · 0 评论 -
calculate distance within matlab
x=[1,3,5];% x coordinatey=[2,2,1];% yz=[1,2,3];% zexample 1,x=repmat(x',1,numel(x));% or x=x*ones(1,numel(x));x=(x-x')^2;y=repma原创 2011-09-13 19:59:38 · 619 阅读 · 0 评论 -
matlab 阶乘
1. factoriale.g. factorial(4) %4!2. gammae.g. gamma(5) %4!3. s='4!'vpa(s)原创 2011-08-25 02:18:19 · 2469 阅读 · 0 评论 -
MATLAB中的共轭转置与非共轭转置
对已知矩阵A,MATLAB为我们提供了两种转置运算。A.' 非共轭转置A' 共轭转置单纯地共轭用:conj()非共轭可以用:transpose()example: a = 12.0000转载 2011-09-16 19:14:47 · 51556 阅读 · 0 评论 -
Ubuntu+11.04+下+安装+matlab+R2010b
1.下载unix版matlabR2010b可以到电驴上搜索。2.挂载镜像sudo mount -o loop /path/to/matlabR2010b.iso /mnt/path/to/matlabR2010b.iso 为镜像文件路径。3.安装c原创 2011-08-25 01:27:14 · 3633 阅读 · 0 评论 -
利用matlab对文件批量重命名
>> matlab 中 strrep 函数可以更改文件扩展名。>> matlab 中 unix system ! 都可以让你在 matlab 中执行系统命令。比如:!mv a.tex b.texunix('mv a.tex b.tex')system('mv a.tex b.tex')>> 再加上 dir 函数 以及一个 for-loop 就可以对文件进行批量重命名了。当然原创 2011-11-15 22:16:51 · 4589 阅读 · 0 评论 -
Calculates the distance on the surface of the earth within matlab
This function is used to calculate the distance between two points on the earth surface, using different ellipsoid parameters.The original author is Orlando Rodríguez. I changed the code a little bi原创 2011-09-21 23:54:37 · 1374 阅读 · 0 评论 -
Matlab accumarray函数
A = accumarray(subs,val,sz,fun,fillval) sub:提供累计信息的指示向量 val:提供累计数值的向量 sz:控制输出向量A的size fun:用于计算累计后向量的函数,默认为@sum,即累加fillval:填补A中的空缺项,默认为0例子:myfun = @(x) 1./(2*numel(x)) *原创 2011-07-31 20:58:54 · 5354 阅读 · 0 评论 -
matlab中用spline代替solve/finvers求反函数
example:Cg=sym('exp(-((-log(u))^alpha + (-log(v))^alpha)^(1/alpha))');cu=diff(Cg,'u');c=subs(cu,{'u','alpha'},[0.8,2]);vr=linspace(0,1,1000);tr=subs(c,'v',vr);t=rand(100,1);v=spline(tr,vr原创 2011-11-03 01:14:07 · 6136 阅读 · 0 评论