How to setup terminal for debugging MATLAB scripts while editing in vim
조회 수: 15 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2019년 8월 30일
편집: MathWorks Support Team
2025년 1월 31일
I would like to be able to debug MATLAB files while editing them in vim.
Does MATLAB have support for using debugging and other features while using vim as an external editor?
채택된 답변
MathWorks Support Team
2025년 1월 17일
편집: MathWorks Support Team
2025년 1월 31일
MATLAB can be launched for use on the command line by passing it the command line flag '-nodesktop'. Commands can then be entered on the command line in the same way you would enter them in the MATLAB Command Window. Commands like 'plot' or 'figure' will still generate GUI windows.
By combining this functionality with a terminal multiplexing program like 'tmux' or 'screen', you can mimic the layout of the MATLAB desktop on the command line. You can then edit your files in vim while still having easy access to MATLAB commands to run and debug your script.
To access documentation on debugging MATLAB programs using MATLAB commands, execute the following command in the MATLAB R2019b command window to view the release-specific documentation:
>> web(fullfile(docroot, 'matlab/debugging-code.html'))
Please follow the below link to search for the required information regarding the current release:
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!