出现问题:


function decisiontree()
[S1,S2,S3,S4,S5,S6,S7,S8,classity]=textread('pima-indians-diabetes.data','%f,%f,%f,%f,%f,%f,%f,%f,%s');
D=[S1 S2 S3 S4 S5 S6 S7 S8];
AttributName={ '怀孕次数','血糖浓度','舒张压','肱三头肌皮褶厚度','2小时胰岛素','体重指数','糖尿病家谱功能','年龄'};
t=classregtree(D,classity,'names',AttributName);
t=prune(t,'level',5);
disp(t);
end
function IDmenu()
s=menu('ID3决策树','构建决策树','生成决策树图形','决策树9倍交叉错误率曲线','致谢','退出');
switch s
case 1, clc;clear all;close all hidden;decisiontree();IDmenu
case 2, clc;clear all;close all hidden ;show_tree();IDmenu;
case 3, clc;clear all;close all hidden ;errorrate();IDmenu;
case 4, clc;clear all;close all hidden ;disp('感谢给予此程序帮助的所有人');IDmenu;
case 5, clc;clear all;close all hidden;clc;
otherwise clc;clear all;close all hidden;disp('错误')
end
我想要达到的结果