Text Output of m file
7 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Stephen23
on 23 Aug 2017
Edited: Stephen23
on 24 Aug 2017
Method one:
% <include>filename.m</include>
Method two:
disp(fileread(...))
3 Comments
Jan
on 23 Aug 2017
@Kambren: Then take a look into the documentation:
doc publish
Steven Lord
on 24 Aug 2017
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!