Calling a function inside another function ?

I have a function called [S]=FirstFunction(a,b) inside this function, i want to call another function called [a,b,c]=SecondFunction(a)
How do i do this? Thanks :)

回答(1 个)

function S = FirstFunction(a,b)
[a, b, c] = SecondFunction(a); %just call it
S = .... something

类别

帮助中心File Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by