随笔分类 -  Matlab

并行计算的问题---Failed to open matlabpool
摘要:一:问题在查看一篇论文公布的Matlab源代码时,有这么一行代码:matlabpool('open',8);代码运行到此时,会出现错误:Failed to open matlabpool. (For information in addition to the causing error, vali... 阅读全文

posted @ 2014-10-06 13:13 DeepVL 阅读(3267) 评论(0) 推荐(0)

Matlab左除(\\)和右除(/)
摘要:一般情况下,x=a\b是方程a*x =b的解,而x=b/a是方程x*a=b的解。例:a=[123; 426; 749]b=[4; 1; 2];x=a\b则显示:x= -1.5000 2.0000 0.5000如果a为非奇异矩阵,则a\b和b/a可通过a的逆矩阵与b阵得到: a\b ... 阅读全文

posted @ 2014-09-28 23:46 DeepVL 阅读(466) 评论(0) 推荐(0)

imfill
摘要:Fill image regions and holes. BW2 = imfill(BW1,LOCATIONS) performs a flood-fill operation on background pixels of the input binary image BW1, starti... 阅读全文

posted @ 2014-09-28 23:46 DeepVL 阅读(907) 评论(0) 推荐(0)

Using gcc within Windows
摘要:http://gnumex.sourceforge.net/ 阅读全文

posted @ 2014-09-28 23:46 DeepVL 阅读(73) 评论(0) 推荐(0)

error C2143: syntax error : missing \';\' before \'type\'
摘要:在进行windows下的mex时(用VC),会出现这种莫名的错误,原因:Visual Studio only supports C89. That means that all of your variables must be declared before anything else at th... 阅读全文

posted @ 2014-09-28 23:46 DeepVL 阅读(326) 评论(0) 推荐(0)

The specified module could not be found
摘要:在对 Saliency Detection: A Boolean Map Approach(ICCV 2013) 这篇论文的代码进行编译运行时,需要OpenCV,修改compile.m中opts.opencv_include_path = 'C:\opencv240\install\includ... 阅读全文

posted @ 2014-09-28 23:45 DeepVL 阅读(685) 评论(0) 推荐(0)

几个不错的Matlab官方视频
摘要:1 :GPU Computing with MATLABhttp://www.mathworks.com/videos/gpu-computing-with-matlab-81840.html?form_seq=conf882&type=large2:Parallel Computing Toolb... 阅读全文

posted @ 2014-09-28 23:45 DeepVL 阅读(277) 评论(0) 推荐(0)

listdlg
摘要:1:问题引入:在某些场合,需要进行用户交互,比如给定一些选项,让用户进行选择,此时,listdlg就是一个不错的选择,比如如下的一个例子:列出本文件夹下的所有文件,双击时会返回选择的文件的索引。2:listdlg函数介绍输入是参数对,输出(当双击或者敲击回车)是列表项的索引ParameterDesc... 阅读全文

posted @ 2014-09-28 23:45 DeepVL 阅读(533) 评论(0) 推荐(0)

矩阵存储
摘要:matlab存储矩阵时按照列存储,比如:A =[1 2 3;4 5 6;7 8 9]即:A = 1 2 3 4 5 6 7 8 9则A(:)= 1 4 7 2 5 8 3 6 9 阅读全文

posted @ 2014-09-28 23:45 DeepVL 阅读(153) 评论(0) 推荐(0)

Matlab常用函数
摘要:1 :im2double : [0,255]---->[0,1]2:grp2idx:[G,GN] = grp2idx(S) creates an index vector G from the grouping variableS.The result G is a vector taking in... 阅读全文

posted @ 2014-09-28 23:45 DeepVL 阅读(2599) 评论(0) 推荐(0)

mexFunction
摘要:简介 MEX从字面上是MATLAB和Excutable 两个单词的缩写。 MEX文件是由C或Fortran语言编写的源代码,经matlab编译器处理而生成的二进制文件。它是可以被matlab解释器自动装载并执行的动态链接程序,类似windows下的dll文件。 MEX文件实现了一种其它语言与MA... 阅读全文

posted @ 2014-09-28 23:45 DeepVL 阅读(646) 评论(0) 推荐(0)

Matlab字符串处理
摘要:% length(a) 获取字符串长度%d=strcat(a,c) 连接两个字符串,每个字符串最右边的空格被裁切%strcmp 比较两个字符串是否完全相等,是,返回真,否则,返回假%strncmp 比较两个字符串前n个字符是否相等,是,返回真,否则,返回假%strcmpi 比较两个字符串是... 阅读全文

posted @ 2014-09-28 23:45 DeepVL 阅读(342) 评论(0) 推荐(0)

MEX的几种文件后缀名
摘要:MEX files will have a variety of suffixes depending on the architecture for which they were compiled:1: mexa64===>64-bit Linux 2: mexglx===>32-bit Lin... 阅读全文

posted @ 2014-09-28 23:44 DeepVL 阅读(704) 评论(0) 推荐(0)