当前注册人数422581人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

40万国外源码搜索
200万国内源码搜索
相关源代码

Source Code for Read from a Text File and Return an array

Matlab实现文本文件读取并存储成矩阵源代码

2008年06月22日
Matlab R13SP1
这个Matlab程序,可以读取任何文本文件,并返回一个内容的数组。它在执行过程中,对每个字符串进行匹配,每行作为一次匹配的结束。
相关知识

用法是:[data, result]= readtext(source, delimiter, comment, quotes, options)

source: the file to be read. May be a file path or just the file name. OR: The text itself, see 'textsource', below.

delimiter: (default: ',') any non-empty string. May be a regexp, but this is slow on large files.

comment: (default: '') zero or one character. Anything after (and including) this character, until the end of the line, will be ignored.

quotes: (default: '') zero, one (opening quote equals closing), or two characters (opening and closing quote) to be treated as paired braces. Everything between the quotes will be treated as one item. The quotes will remain. Quotes may be nested.

options: (default: '') may contain (concatenate combined options):
- 'textsource': source contains the actual text to be processed, not the file name.
- 'textual': no numeric conversion ('data' is a cell array of strings only),
- 'numeric': everything is converted to a number or NaN ('data' is a numeric array, empty items are converted to NaNs unless 'empty2zero' is given),
- 'empty2zero': an empty field is saved as zero, and
- 'empty2NaN': an empty field is saved as NaN.
- 'usewaitbar': call waitbar to report progress.

源代码原文下载:
readtext Any text (file) you give it, readtext returns an array of the contents. You can chose delimiter etc.

源码图片

从本站下载附件及源代码(1个附件,已经成功下载769次)

最值得关注的外文源代码

Face Recognition
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论169次,此处显示最近20次评论! 查看所有评论

lin_hao  2018年10月17日
下载看看
天天阳光  2017年10月30日
谢谢分享
brizafly  2017年10月22日
谢谢分享
夕见  2016年12月15日
谢谢分享
LIBest敏  2016年11月30日
Xymei_0114  2016年04月19日
学习了……
卡布奇诺  2015年05月08日
好深奥啊。
晓辰  2014年12月31日
2  2014年07月26日
下载看看 谢谢分享
中轴线  2014年07月12日
谢谢分享
wangshaozhen  2014年05月05日
谢谢分享
ITmanong  2014年05月02日
谢谢分享
heyehey2  2013年11月29日
看看
心翔誓成  2013年10月13日
谢谢分享
星星  2013年09月04日
看看
叫三哥  2013年06月21日
谢谢分享
小小周周  2013年05月15日
非常感谢奉献代码的朋友!
elsalina  2013年04月03日
先下来看看。谢谢
qinhao1q2w3e  2013年03月17日
好的
lhp  2013年03月16日
kanbudong
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明