📄 drswitch.m
字号:
function drswitch(a)%DRSWITCH.M: utility for omp2, allows directory change during programm executioni = 'y';while i == 'y' disp(' ') disp([a ' your current work directory, which is']) disp([' ' pwd]) disp(' ') disp('This directory contains the following directories/folders and files:') dir disp(' ') i = 'n'; incontrol = input('Do you want to change directory (y/n)? [n] ','s'); if length(incontrol) > 0 i = incontrol; end if i == 'y' chdir = '..'; incontrol = input('Change to which directory: [..] ','s'); if length(incontrol) > 0 chdir = incontrol; end newdir = ['cd ' chdir]; eval(newdir); endend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -