随笔分类 -  matlab

摘要:http://blog.csdn.net/scudz/article/details/13628917 这篇文章写得很好,我跟据这个,操作了一下,发现,好用,精简版总结如下 1. matlab打开一个.m文件 2. 命令窗口输入 mcc -W cpplib:testall -T link:lib t 阅读全文
posted @ 2017-01-09 14:53 xy123001 阅读(191) 评论(0) 推荐(0)
摘要:程序开头 profile on 结尾 profile viewer 然后就会很贴心滴出现下面的界面,可以从中展开,查看每段运行的时间 阅读全文
posted @ 2016-11-28 09:22 xy123001 阅读(4004) 评论(0) 推荐(0)
摘要:a=cell(1,2);a{1}=zeros(1,2);a{2}=zeros(2,2); b=cell(1,2);b{1}=zeros(1,3);b{2}=zeros(1,3);aa=[a,b] %注意 这里是方括号 阅读全文
posted @ 2016-11-16 20:57 xy123001 阅读(13092) 评论(0) 推荐(0)
摘要:clear all;close all; BW=zeros(9,10); BW(4:6,4:7) =1 imshow(BW) hold on SE=strel('square',3) BW2=imdilate(BW,SE) figure imshow(BW2) 阅读全文
posted @ 2016-11-14 10:02 xy123001 阅读(331) 评论(0) 推荐(0)
摘要:clear all close all clc; A=load('outlog.txt'); M=A(1:566,:); y=zeros(566,2); y(:,1)=M(:,1); y(:,2) = medfilt1(M(:,2),5); seg=zeros(566,1); th=300; cnt=0; if y(1,2)==0 seg(1)=0; seg_cnt=0... 阅读全文
posted @ 2016-11-04 11:13 xy123001
摘要:clear all close all clc; A=load('outlog.txt'); M=A(1:566,:); y=zeros(566,2); y(:,1)=M(:,1); y(:,2) = medfilt1(M(:,2),5); plot(y(:,1),y(:,2),'r.') hold on plot(M(:,1),M(:,2)+200,'b.') 阅读全文
posted @ 2016-11-03 14:50 xy123001 阅读(221) 评论(0) 推荐(0)
摘要:save('pqfile.mat','M'); ('E:\我的坚果云\pqfile.mat','M'); 其他: http://blog.csdn.net/iqizheng/article/details/11853919 如果想读入txt scan1=importdata('C:\Users\th 阅读全文
posted @ 2016-10-11 17:33 xy123001 阅读(238) 评论(0) 推荐(0)
摘要:一定是1*3 或者3*1 的向量才可以叉乘 A=[1 2 3] B=[4 5 6] cross(A,B) ans=[-3 6 -3] 解决机器人微分运动量之间的等价关系 阅读全文
posted @ 2015-12-24 19:41 xy123001 阅读(963) 评论(0) 推荐(0)
摘要:% 求Ax=0的解: r=rank(A); x=null(A,r) 求出来x的是归一化后的解。 阅读全文
posted @ 2015-12-22 16:07 xy123001 阅读(1119) 评论(0) 推荐(0)