Second output argument as input argument
조회 수: 3 (최근 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에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!