随笔分类 -  Matlab编程

摘要:对Matlab不是很熟悉,在这个Matlab atan2 函数上出现了问题。 百度知道上的解释是这样的:atan2() 区别于 atan() 函数,返回 -pi~+pi 范围的角度;使用过程中发现在 MATLAB 和 Excel 中该... 阅读全文
posted @ 2015-12-21 12:03 wishchin 阅读(1073) 评论(0) 推荐(0) 编辑
摘要:Matlab interp2 为Matlab的矩阵填充函数,填充关系:x=1:11; y=1:13; x1=1:0.1:12; y1=1:0.1:14; [x2,y2]=meshgrid(x1,y1); t1=interp2(x,y,t,x2,y2,'... 阅读全文
posted @ 2015-12-14 12:03 wishchin 阅读(9869) 评论(0) 推荐(0) 编辑
摘要:Matlab进行矩阵填充时可以填充空矩阵,相当于空矩阵不存在,例如一下代码:P_RES = [ P_xv P_xvy P_xv*dy_dxv'; P_yxv P_y ... 阅读全文
posted @ 2015-09-07 11:35 wishchin 阅读(328) 评论(0) 推荐(0) 编辑
摘要:参考链接:http://www.cnblogs.com/haore147/p/3633032.html1.Matlab中数组元素引用有三种方法1231.下标法(subscripts)2.索引法(index)3.布尔法(Boolean)注意:在使用这三... 阅读全文
posted @ 2015-08-21 16:40 wishchin 阅读(709) 评论(0) 推荐(0) 编辑
摘要:Eigen为Matlab转换为C++提供了一个简单的语法级别的代码迁移工具. 对一些代码进行了扩充,以便程序由Matlab到Eigen的移植...................参考链接:http://eigen.tuxfamily.org/... 阅读全文
posted @ 2015-07-07 17:50 wishchin 阅读(264) 评论(0) 推荐(0) 编辑
摘要:同型矩阵运算满足加法交换律、结合律;并存在单位元、逆元、和0元,为同型矩阵对加法的交换环。 Eigen的简单运算参考:http://blog.163.com/jiaqiang_wang/blog/static/118896153201... 阅读全文
posted @ 2015-07-07 17:49 wishchin 阅读(710) 评论(0) 推荐(0) 编辑
摘要:原文链接:http://blog.sina.com.cn/s/blog_5e73a8fc0100t9yg.html这是个函数句柄 @(x,y) 表示未知数是x和ypunct - Function handlecreation @@ 在匿名函数... 阅读全文
posted @ 2014-08-20 18:04 wishchin 阅读(1840) 评论(0) 推荐(0) 编辑
摘要:1.Matlab调用C++:http://blog.csdn.net/zouxy09/article/details/20553007摘录下效果图:2.mwArray类操作:http://blog.sina.com.cn/s/blog_9460ff790101fujz... 阅读全文
posted @ 2014-07-11 13:27 wishchin 阅读(1673) 评论(0) 推荐(0) 编辑
摘要:前言:脑残的使用了C++调用Matlab,没想到Matlab的使用者的智商还真TMD不一般, 竟然有这样的 plot(x_Abnorm_index,Vec2(Abnorm_index),'sb','linewidth',1.5); hold o... 阅读全文
posted @ 2014-07-11 11:15 wishchin 阅读(314) 评论(0) 推荐(0) 编辑
摘要:原文链接:http://blog.csdn.net/zouxy09/article/details/20553007一不小心,成了一个忠实复制者... 阅读全文
posted @ 2014-06-26 10:50 wishchin 阅读(99) 评论(0) 推荐(0) 编辑
摘要:C++调用Matlab,实在是不得已的方法。原文链接:http://kylen314.blog.com/2012/12/11/matlab_for_cplusplus/ 这是个很善良的博客,只出现了一个小小的错误!内容:有少量修改!噩耗啊噩耗啊!!!!最近本身就忙到... 阅读全文
posted @ 2014-06-25 10:03 wishchin 阅读(1056) 评论(0) 推荐(0) 编辑
摘要:与 原文 过程有些不同,根据具体环境自行配置即可!转自于:http://blog.csdn.net/left_la/article/details/8206645我的计算机环境是win7 64位系统,VS2010,matlab R2010b。一、工程配置:1.C/C+... 阅读全文
posted @ 2013-09-05 20:38 wishchin 阅读(205) 评论(0) 推荐(0) 编辑
摘要:(1).CalTexture.m文件function T = CalTexture(Image)[M,N,O] = size(Image);%% 得到图像的宽,高和通道%-------------------------------------------------... 阅读全文
posted @ 2013-07-17 14:58 wishchin 阅读(228) 评论(0) 推荐(0) 编辑
摘要:很简单的代码:不过花了codeforge上的10个点,自己写也早写出来了; 代码如下:文件:calLaws.mfunction [y,h_v,h_h]=calLaws(x,id,LocalEnergy)for dim=1:2 if dim==1 ... 阅读全文
posted @ 2013-07-17 14:49 wishchin 阅读(178) 评论(0) 推荐(0) 编辑
摘要:Matlab中的字符串操作原文链接:http://hi.baidu.com/dreamflyman/item/bd6d8224430003c9a5275a9f(1).字符串是以ASCII码形式存储的。abs和double函数都可以用来获取字符串矩阵所对应的ASCII码... 阅读全文
posted @ 2013-07-17 14:26 wishchin 阅读(196) 评论(0) 推荐(0) 编辑
摘要:只用C语言,不用Matlab这种魔咒还是要打破的。Matlab是科学计算的常用工具,既然以前没用过,现在开始学吧......1、 向量的创建1)直接输入:行向量:a=[1,2,3,4,5]列向量:a=[1;2;3;4;5] 2)用“:”生成向量 ... 阅读全文
posted @ 2013-07-17 14:06 wishchin 阅读(277) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示