以向量开头的格式写入txt文件?
我想做与这个问题中解释的相反的事情:
我会传递向量(例如. <代码>代码服务 = [NNNNNNNNNN ....] area = [IIIIIII ....] [.........]) 创建与链接中格式相同的文本文件,即:
* Comment line
| Code | serv | etc. ...
* Comment line
Figures | Figures | Figures | etc. ......
我们必须重建一个新驱动器,否则您可以调整代码?
感谢您的帮助和相关信息。
I want to do the opposite of what has been explained in this question:
I would pass by the vectors (eg. codeserv = [NNNNNNNNNN ....]
) to create the text file with the same format as in the link, ie:
area = [IIIIIII ....] [.........]
* Comment line
| Code | serv | etc. ...
* Comment line
Figures | Figures | Figures | etc. ......
We must rebuild a new drive or you can adapt the code?
Thanks for your help and information about it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个小示例,可以帮助您将第一个文件从 Matlab 保存到硬盘上。
希望它有帮助。
Here is a little sample, what should help you to save your first file out of Matlab onto your hard drive.
Hopefully it helps.
您可以使用 fprintf 进行输出,而不是使用 textscan 来扫描某些输入。
Instead of using textscan in order to scan some input, you may use fprintf for output.