Text Output of m file
6 次查看(过去 30 天)
显示 更早的评论
I'm publishing an m file and want to print out the contents of another m file within the one I'm publishing I remember having done this before but I can't remember how.
Thanks
0 个评论
回答(1 个)
Stephen23
2017-8-23
编辑:Stephen23
2017-8-24
Method one:
% <include>filename.m</include>
Method two:
disp(fileread(...))
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Export 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!