源自:http://www.w2bc.com/Article/16709matlab中setdiff()函数作用:判断2个数组中不同元素c = setdiff(A, B)返回在A中有,而B中没有的值,结果向量将以升序排序返回。在集合论中,c = A - B。A和B也可以是字符串细胞数组。c = se... Read More
posted @ 2015-09-03 21:17 丰玉清 Views(3146) Comments(0) Diggs(0)
关于matlab函数 bsxfun本文来源:http://blog.sina.com.cn/s/blog_9e67285801010ttn.htmla=[1 2 3];b=[1 2 3]';c=bsxfun(@plus,a,b)c = 2 3 4 3 4 5 4 ... Read More
posted @ 2015-09-01 19:42 丰玉清 Views(844) Comments(0) Diggs(0)
%关于interp2的自我理解%利用已知的信息,对数据进行拟合%用一个例子进行理解例:设有数据x=1,2,3,4,5,6,y=1,2,3,4,在由x,y构成的网格上,数据为:12,10,11,11,13,1516,22,28,35,27,2018,21,26,32,28,2520,25,30,33,... Read More
posted @ 2015-08-31 16:05 丰玉清 Views(705) Comments(0) Diggs(0)
%% 如何将.mat文件中的数据转换成图片clc;clear all;addpath F_data/MAT;load('D:\face.mat')for i=1:q img=uint8(reshape(Data(:,i),imSize)); imgname = strcat('D:\MAT\PIC\... Read More
posted @ 2015-08-19 10:53 丰玉清 Views(4177) Comments(1) Diggs(0)
%% 功能:实现同时对一批.bmp文件的转换成.mat格式PicFormat = {'*.bmp','Bitmap image (*.bmp)';... '*.jpg','JPEG image (*.jpg)' ;... '*.*','All Files (*.*)'};% 利用uige... Read More
posted @ 2015-08-17 11:23 丰玉清 Views(1030) Comments(0) Diggs(0)