Text Output of m file
조회 수: 10 (최근 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!