标签: matlab input console
如何从MATLAB控制台(命令窗口)中读取字符串或字符?
答案 0 :(得分:11)
有关完整参考资料,请参阅Request input
reply = input('Do you want more? Y/N [Y]: ', 's'); if isempty(reply) reply = 'Y'; end