Calling a matlab (.m) file from another matlab (.m) file

I want to call file of Matlab like 'height_control.m' from another file like 'controller.m'. How will I call?

Answers (1)

Make it a function 'height_control.m' with the inputs it needs and call this function in your controller.m file.

Categories

Asked:

on 19 May 2016

Answered:

on 19 May 2016

Community Treasure Hunt

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

Start Hunting!