- 博客(12)
- 资源 (3)
- 收藏
- 关注
原创 matlab 读自定义格式文件 fscanf & sscanf
%-1 1:0.088390 2:0.053062 3:0.012884 4:0.010806 5:0.009005 6:0.015932 7:0.064422 8:0.082156 9:0.028401 10:0.014270 11:0.005542 12:0.005957 13:0.032835 14:0.035883 15:0.016209%label index: value inde
2012-08-29 07:35:10 5702
转载 matlab 逐行从文件读入
while 1nextline = fgetl(fid_test_groundtruth); %read a line if ~ischar(nextline) break; else line_number = line_number + 1; end end
2012-08-29 06:25:00 9851
转载 matlab中使用结构体
matlab中使用结构体2008-01-15 14:23结构(struct)数组要在MALTAB中实现比较复杂的编程,就不能不用struct类型。而且在MATLAB中实现struct比C中更为方便。4. 3.1 结构数组的创建MATLAB提供了两种定义结构的方式:直接应用和使用struct函数。1. 使用直接引用方式定义结构与建立数值型数组一样,建立新struct对
2012-08-29 03:03:35 1763 1
转载 用Matlab实现字符串分割(split)
用Matlab实现字符串分割(split)Posted on 2011/08/08 Matlab的字符串处理没有C#强大,本身又没有提供OO特性,需要依赖别的手段完成这项任务。我们在这里借助正则表达式函数regexp的split模式。一般语法:S = regexp(str, char, 'split')其中str是待分割的字符串,char是作为分隔符的字符(可以使用
2012-08-23 09:17:36 144507 6
原创 Matlab 读混合数据类型文件 textscan
待解析数据:person01_boxing_d1 frames 1-95, 96-185, 186-245, 246-360person01_boxing_d2 frames 1-106, 107-195, 196-265, 305-390person01_boxing_d3 frames 1-95, 96-230, 231-360, 361-465person01_boxin
2012-08-23 08:47:30 5705
转载 Matlab 文件读写函数
董为国:《深入浅出MATLAB7.x混合编程》Matlab提供多种能够进行文件读写的函数,这些函数是Matlab语言的一部分,并不需要任何额外的工具箱的支持。文本文件Matlab中对文件的读写函数可以分为2大类:高级函数和低级函数。简单的说,高级函数的调用语法简单,方便使用;但是可定制性差,只适用某些特殊格式的文件类型,缺乏灵活性。在实际的使用中,很多人会推荐这样的
2012-08-23 07:59:50 2828
原创 Matlab connect strings, seperate pathstr, name and ext
1. connect stringsfname = strcat('C:\Users\user_name\work\video\',avi_name{1}); 2. seperate pathstr, name and ext[pathstr, name, ext] = fileparts(filename) returns the path name, file name
2012-08-17 08:58:05 1193
转载 Use matlab to traverse the files in a folder
mydir=uigetdir('D:\Sequences\Weizmann\bend'); %displays a dialog box for the user to browse through the directory%structure and select a directory, and returns the directory name as a stringif myd
2012-08-17 07:43:03 754
转载 Convert Avi to Yuv420 matlab code
%# Get the video data:clear all;close all;fclose all;vidObj = VIDEOREADER('D:\myTools\person01_walking_d1_uncomp.avi'); %mmreader # Create a video file object daria_bend.avi'); %nFrames =
2012-08-17 07:10:03 1477 1
原创 ConvertRgbToYuv intermediate variables should be double or float
function yuv = ConvertRgbToYuv(rgbUint8)% [m, n, c] = size(rgb);% yuv = zeros(m, n, 3);% yuv(:, :, 1) = 0.299*rgb(:, :, 1) + 0.587*rgb(:, :, 2) + 0.114*rgb(:, :, 3);% yuv(:, :, 2) = -0.147*rgb
2012-08-17 06:58:16 1111 1
转载 python中的subprocess.Popen()使用
2010-03-30 17:45在收集snmp数据的过程中用到了subprocess这个模块,本来想用其他python里面关于snmp的库,还是觉得麻烦就直接调用snmpwalk来收集数据。最开始想用subprocess.call()这个函数,然而这个函数没有和其他进程通信的功能就放弃了 google了一下找到subprocess.Popen()这个函数,具体用法后面会贴一个别人写
2012-08-17 02:02:38 7293
转载 LIBSVM中归一化和参数估计的重要性
LIBSVM中归一化和参数估计的重要性下面是Libsvm guide中采用不同方法使用Libsvm的例子:(可以看到归一化和参数估计的重要性)Astroparticle Physics– Original sets with default parameters$./svm-train train.1$./svm-predict test.1 train.1.mod
2012-08-16 07:38:27 6253
An Improvement Using Combination of VQ and PCA Based Techniques
2009-10-22
Wavelets and the Lifting Scheme A 5 Minute Tour
2008-10-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人