📄 movesingledisk.m
字号:
function answer_b = MoveSingleDisk(start, finish, answer)
tmp=size(answer);
step=int2str(tmp(1));%change the integer to the string, used for later "strcat"
%the following is all for the consistence of the arrays
if tmp(1)<10
line=strcat(step,'. Move',start,' to ',finish);
else
line=strcat(step,'.Move',start,' to ',finish);
end
answer_b=[answer;line];%write the new step to the final answer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -