passing output between functions
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi everyone, can anyone help or point me in the right direction.how do i pass the output from one function to another.
thanks
댓글 수: 0
답변 (2개)
Dustin
2011년 8월 2일
Hi Silbelo,
Is there some specific type of functionality you are trying to achieve? If not, then the same format as in many other programming languages should suffice:
output1 = func1(input1);
output2 = func2(output1);
댓글 수: 2
Dustin
2011년 8월 6일
Can you post a simple example here to clearly demonstrate the problem? Otherwise, in your case, I don't see why output2 = function(function1(input1)) would not work.
참고 항목
카테고리
Help Center 및 File Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!