storing only part of the output of a function with multiple outputs
조회 수: 1 (최근 30일)
이전 댓글 표시
Suppose you have a function with many outputs, e.g.,
[C,ia] = setdiff(A,B)
I am only interested in ia and not C. Is there some way of only calling on ia without storing C? Thank you very much!
댓글 수: 0
채택된 답변
Star Strider
2015년 3월 3일
Use the tilde ‘~’ to suppress outputs you don’t need.
In this instance:
[~,ia] = setdiff(A,B)
댓글 수: 0
추가 답변 (1개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!