passing output between functions
1 次查看(过去 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.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!