how to define a function in matlab so that we can call it?
2 ビュー (過去 30 日間)
古いコメントを表示
採用された回答
Stephen23
2015 年 1 月 20 日
編集済み: Stephen23
2015 年 1 月 20 日
Basic function syntax is like this:
function [e,w] = blocklms(mu,M,u,d)
% Your code here:
e = mu*M;
W = u-d;
%
end
Save this in an M-file with the same name as the function itself, and then you can call your function from the command line, a script, or from any other function. For more information read the documentation, which also includes lots of nice examples:
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!