How to get output in a function to be used in another function?
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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 个评论
更多回答(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!