声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1478|回复: 4

[编程技巧] 如何读取txt中指定位置的数据

[复制链接]
发表于 2015-11-7 18:21 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
比如txt文件如下:
abc: 123 324 456
des: 458 454 552
kst: 448 447 457
std: 448 887 784

现在想读取kst:后便的数据
回复
分享到:

使用道具 举报

发表于 2015-11-9 08:55 | 显示全部楼层
help fscanf, importdata ??
发表于 2015-11-9 09:39 | 显示全部楼层
参考http://forum.vibunion.com/thread-8937-1-1.html,把判断语句修改修改就可以的

评分

1

查看全部评分

发表于 2015-11-9 13:33 | 显示全部楼层
From http://home.vibunion.com/blog-63979-18250.html
3.[原创]使用文本文件(.txt)进行数据存取的技巧总结 http://forum.vibunion.com/thread-45622-1-1.html
   也谈在Matlab中读入数字与字符混排的文本数据 http://forum.vibunion.com/thread-8937-1-1.html
   [转帖]matlab中常见txt文件读入的实用方法 http://forum.vibunion.com/thread-2029-1-1.html
   在Matlab中读入数字与字符混排的文本数据 http://forum.vibunion.com/thread-7985-1-1.html
   如何导入大量数据 http://forum.vibunion.com/thread-104333-1-2.html

点评

留着学习啦  详情 回复 发表于 2016-5-17 17:24
发表于 2016-5-17 17:24 | 显示全部楼层
ChaChing 发表于 2015-11-9 13:33
From http://home.vibunion.com/blog-63979-18250.html
3.[原创]使用文本文件(.txt)进行数据存取的技巧总 ...

留着学习啦
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-12 09:32 , Processed in 0.061881 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表