Calling a function inside another function ?

조회 수: 9 (최근 30일)
Mohammed
Mohammed 2016년 9월 4일
답변: Walter Roberson 2016년 9월 4일
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개)

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

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by