필터 지우기
필터 지우기

advantages of nested functions

조회 수: 2 (최근 30일)
Muazma Ali
Muazma Ali 2021년 12월 6일
답변: Matt J 2021년 12월 6일
Hi ! :)
I am wondering about what the advantages are of using nested functions other than that the workspace of parent function will be available fo rnested functions. If I had written a long function, would it have taken longer time to run that function than if I had nested som functions within a parent function..?

답변 (1개)

Matt J
Matt J 2021년 12월 6일
Another advantage is that it allows you to store function parameters in handles, see,

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by