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!