MATLAB: Built a function

functionMATLAB

how i can built a function and call it in another function?

Best Answer

Write the function in the editor and save it to an M-file in a folder, which is included the in the path or the current folder.
This explained exhaustively in the documentation, e.g. function.