필터 지우기
필터 지우기

How to "link" an .m file to an .mlx file

조회 수: 15 (최근 30일)
Alicia Cuber Caballero
Alicia Cuber Caballero 2019년 12월 18일
답변: Walter Roberson 2019년 12월 18일
Hi, I have got this assignment in which I am required to create a function to complete a task, so I used a separate .m file, which is what we have been taught in the course. The function works appropriately and I completed the question. However, I was wondering if there is any way in which i can sort of "link", or load the .m file to the .mlx one to facilitate correction and improve presentation.
I will submit both files so if this isn't possible I will just comment that the .m file is needed for the function to work.
Thank you,
Alicia

채택된 답변

Walter Roberson
Walter Roberson 2019년 12월 18일
.mlx files can have function definitions in them in recent MATLAB versions, provided that the function has a matching "end" statement.
It is not possible to "bundle" a .m file with a .mlx file, except by creating an "app"; https://www.mathworks.com/help/matlab/packaging-guis-as-apps.html?s_tid=CRUX_lftnav which creates a .mlappinstall file

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Package and Share Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by