도움말 센터도움말 센터
파일의 내용 표시
type filename
예제
typefilename은 지정한 파일의 내용을 MATLAB®명령 창에 표시합니다.
typefilename
filename
모두 축소
diceRoll파일의 내용을 표시합니다.diceRoll은 존재하지 않지만diceRoll.m은 존재하므로, MATLAB은diceRoll.m의내용을표시합니다。
diceRoll
diceRoll.m
typediceRoll
function [d1,d2] = diceRoll str = '@()randi([1 6],1)'; d1 = str2func(str); d2 = eval(str); end function r = randi(~,~) r = 1; end
표시할 파일 이름으로, 문자형 벡터나 string형으로 지정됩니다.filename은 절대 경로이거나 상대 경로일 수 있고 경로와 파일 확장자를 포함할 수 있습니다.type은 다음 확장자를 가진 파일 이름을 지원하며, 기타 확장자를 가진 파일은 일반 텍스트로 취급됩니다.
type
.mlx
.mlapp
.m
파일 확장자를 지정하지 않고 확장자가 없는 파일이 존재하지 않는 경우,type은 확장자가.mlx,.mlapp또는.m이라고 가정합니다. 예를 들어,myscript.m파일이 있는 경우, 명령type myscript는 이 파일의 내용을 표시합니다.
myscript.m
type myscript
type은 문자 집합을 자동으로 감지하여 MATLAB 코드(.m) 및 기타 텍스트 파일의 파일 인코딩을 결정합니다.
backgroundPool
ThreadPool
이 함수는 스레드 기반 환경을 완전히 지원합니다. 자세한 내용은Run MATLAB Functions in Thread-Based Environment항목을참조하십시오。
dbtype|more|which
dbtype
more
which
이 예제의 수정된 버전이 있습니다. 사용자가 편집한 내용을 반영하여 이 예제를 여시겠습니까?
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select:.
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office