gdmojifei 发表于 2009-4-3 19:44

先顶后看,谢谢分享

gdmojifei 发表于 2009-4-3 19:45

我晕倒,竟然没有给我加分啊

w000002 发表于 2009-7-14 15:16

都是很好的东西,用空向你讨教下

tandemzd2008 发表于 2009-8-5 20:45

谢谢楼主   非常感谢

zyp0807523220 发表于 2010-6-26 00:07

好·······································

斌11斌 发表于 2013-4-26 23:22

很好!thx  LZ加油哈

斌11斌 发表于 2013-4-26 23:24

好!很不错!

w841208450k 发表于 2013-4-28 13:09

function y=fun2(x)
%fun判断水仙花数
y=fun_1(x);
if 99<x<1000
     if y==1
        disp('yes');
     else
         disp('no');
     end
else
    return;
end

    function fun_1(x)
   
    a=fix(x/100);
    b=fix(rem(x,100)/10);
    c=rem(x,10);
       if x==(a^3+b^3+c^3)
          y=1;
       else y=0;
       end
    end
end
哪里出错了呢???

asdhjs 发表于 2016-1-26 21:49

赞赞赞赞赞赞

asdhjs 发表于 2016-1-26 23:21

赞赞赞赞赞赞
页: 1 2 [3]
查看完整版本: [原创] [原创]自己总结收集的Matlab疑问和解答(每日更新)