MATLAB Answers

Isti
0

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

Asked by Isti
on 24 Apr 2012
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 :)

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by TAB
on 24 Apr 2012
 Accepted Answer

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 Comments

Sign in to comment.