How to get output in a function to be used in another function?

조회 수: 3 (최근 30일)
Isti
Isti 2012년 4월 24일
From function "A", i've output matrix "Data". Then i want to use "Data" as input for my another function called function "B". what to do?
thanks before :)

채택된 답변

TAB
TAB 2012년 4월 24일
Function A
function Data = A
% Your logic
end
Function B
function B(InputData)
% Your logic
end
Main script or function
% Call function A & collect Data
RecData = A;
% Call function B by passing data as input
B(RecData);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by