谢谢
year=input('请输入一个年份')
if rem(year,4)==0 && rem(year,100)~=0 || rem(year,400)==0
disp([num2str(year),'是闰年'])
else
disp([num2str(year),'不是闰年'])
end