How to write a function with two kind of output modes?
15 ビュー (過去 30 日間)
古いコメントを表示
How to write a function which can be used as y = myfunc(), or [y,z] = myfunc() ?
0 件のコメント
採用された回答
Star Strider
2016 年 6 月 24 日
Write the first line as:
function [y,z] = myfunc()
If you only request one output, only the first output is returned by default.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Denoising and Compression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!