Calling a function inside another function ?

8 vues (au cours des 30 derniers jours)
Mohammed
Mohammed le 4 Sep 2016
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 :)

Réponses (1)

Walter Roberson
Walter Roberson le 4 Sep 2016
function S = FirstFunction(a,b)
[a, b, c] = SecondFunction(a); %just call it
S = .... something

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by