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

📄 main.m

📁 使用matlab仿真汉诺塔的搬运情况
💻 M
字号:
function main
clear;
answer='The steps is:     ';%the blankets here is for the consistence of the dimensions of array.
response = input('input   the   number   of   diskes:');%ask the user to input the number of diskes
n = response;
answer_b=MoveTower(n, ' Src', ' Dst', ' Aux', answer);%The details of steps is in answer_b, it will be showed at last
answer_b %show the details of steps

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -