As known, there are 2 ways -- nested subroutines and secondaries subr.1. nestedfunction......function......end...end2. primary/secondaryfunction...endfunction...endFrom header (primary function)one can call both nested and secondary subfunctions.But what kind is better to use? What are differences between ?
MATLAB: Two ways of M-subfunction definition: what are discrepances
MATLABnested functionsprogrammingsubfunction
Best Answer