matlab基礎:函數FUNCTION編寫

1.編寫test函數 function [o,p,q,r] = test( n )%%%%%%%%%%%%%%%編寫function test函數 %%%%%%%%%%%%%%%%%%%%%%test函數變量爲n,返回值爲o,p,q,ro= 0; p=0; q=6; r=128; for i = 1:n     o = o + i;     p=p+1;     q=q.*n     r=r.^0
相關文章
相關標籤/搜索