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

3 visualizzazioni (ultimi 30 giorni)
Maidul Islam
Maidul Islam il 19 Mag 2016
Risposto: KSSV il 19 Mag 2016
I want to call file of Matlab like 'height_control.m' from another file like 'controller.m'. How will I call?

Risposte (1)

KSSV
KSSV il 19 Mag 2016
Make it a function 'height_control.m' with the inputs it needs and call this function in your controller.m file.

Categorie

Scopri di più su Workspace Variables and MAT Files in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by