Matlab 有没有办法识别空行?
在Matlab中扫描文本文件时有没有办法识别空行?我想根据文本之间的空行来解析文件。这可能吗?
Is there a way to recognize blank lines when you are scanning a text file in Matlab? I want to parse the files based on the blank lines in between the text. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的,这是可能的。 MATLAB 代码片段如下所示:
Yes, it's possible. A MATLAB snippet would look something like:
这是一种可能性:
Here's one possibility:
没有 \r...现在工作正常
without \r...now works fine