도움말 센터도움말 센터
라인 번호와 함께 파일 표시
dbtype filename
dbtype filename start:end
예제
dbtype filename은 각 라인 앞에 라인 번호를 붙여 filename의 내용을 표시합니다. 이는 dbstop을 사용하여 프로그램 파일에 중단점을 설정하는 데 유용합니다. 내장 함수의 소스 코드는 dbtype을 사용하여 표시할 수 없습니다.
filename
dbstop
dbtype
dbtype filename start:end는 라인 번호 start에서 시작하여 라인 번호 end로 끝나는 파일의 부분을 표시합니다. 하나의 라인을 표시하려면 start 값만 지정하면 됩니다.
start
end
모두 축소
각 라인의 앞에 라인 번호를 붙여 예제 파일 buggy.m을 표시합니다.
buggy.m
dbtype buggy
1 function z = buggy(x) 2 n = length(x); 3 z = (1:n)./x;
파일의 첫 번째 라인을 표시하여 예제 함수 buggy에 대한 입력 인수와 출력 인수를 봅니다. 이 경우에는 start와 end가 동일하므로 end 값을 생략할 수 있습니다.
buggy
dbtype buggy 1
1 function z = buggy(x)
파일 이름으로, 문자형 벡터 또는 string형 스칼라로 지정됩니다. 파일 이름은 부분 경로일 수 있지만 검색 경로의 폴더에 있거나 현재 폴더에 있어야 합니다. 그렇지 않은 경우 전체 경로 이름을 지정해야 합니다.
데이터형: char | string
char
string
시작 라인 번호로, 양의 정수로 지정됩니다.
끝 라인 번호로, 양의 정수로 지정됩니다.
R2006a 이전에 개발됨
dbclear | dbstatus | dbstop
dbclear
dbstatus
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
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