⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 movesingledisk.m

📁 使用matlab仿真汉诺塔的搬运情况
💻 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 + -