5、riday;星期六:Saturday。(20分)源代码: clear all; close all; string = input('星期几呢?','s') switch string case 'Sunday' i=1; case 'Monday' i=2; case 'Tuesday' i=3; case 'Wednesday' i=4; case 'Thursday' 3 i=5; case 'Fri
6、day' i=6; case 'Saturday' i=7; case 'sunday' i=1; case 'monday' i=2; case 'tuesday' i=3; case 'wednesday' i=4; case 'thursday' i=5; case 'friday' i=6; case 'satu
7、rday' i=7; otherwise i=0;end; if i==0 sprintf('你是白痴吗?') else sprintf('星期对应的数字为:%d',i) end3