Second output argument as input argument
2 ビュー (過去 30 日間)
古いコメントを表示
Is it possible to combine the two lines:
[~,b] = myfunction(x);
c = myfunction2(b);
Something like: c = myfunction2(myfunction(x){2}) ??
0 件のコメント
採用された回答
Walter Roberson
2012 年 1 月 30 日
There is no MATLAB syntax or built-in function that supports what you want to do, unfortunately.
1 件のコメント
Daniel Shub
2012 年 1 月 30 日
See: http://www.mathworks.com/matlabcentral/answers/1325-what-is-missing-from-matlab#answer_1931
その他の回答 (1 件)
Andrei Bobrov
2012 年 1 月 30 日
create function myfunctionMore:
function out = myfunctionMore(x)
[~,out] = myfunction(x);
and below
c = myfunction2(out);
c = myfunction2(myfunctionMore(x))
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!