2016-11-22 38 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

相關問題