2016-11-22 27 views

回答

-2

因为这是你的幸运日,我会后解决了其在非明显的方式回答,但是从中可以学到最。

或者,你知道,得到一个好成绩,但失败的过程。

下一次,请自己尝试第一个; SO不是一种编码服务。

function string = uniqueword(string) 

    persistent calls 
    if isempty(calls) 
     calls = 0; end 

    maxcalls = 5; 

    assert(ischar(string),... 
      [mfilename ':invalid_argument'],... 
      '%s takes a single string argument.',... 
      mfilename); 

    assert(calls <= maxcalls,... 
      [mfilename ':maxcalls_exceeded'],... 
      '%d words have already been created.',... 
      maxcalls); 

    calls = calls + 1; 
    string = [string calls+48]; 

end 
+0

哇!谨慎评论? –

+0

倒推我的,所以我刚刚删除它。猜猜帮助人们得到一票否决票。反生产力,但无论... :( – wbrugato

相关问题