How do I combine multiple MATLAB files into a single file?

조회 수: 18 (최근 30일)
I would like to combine multiple MATLAB files into a single file.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2010년 1월 16일
While there is no MATLAB function that performs this, this objective can be accomplished by entering the following DOS command at the MATLAB command prompt:
!copy *.m combined.m
Alternatively you can use the file operation commands to read the files and write them out into a single file.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 File Operations에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by