Filter löschen
Filter löschen

mfilename used in ".mlx" does not appear to be the desired path?

6 Ansichten (letzte 30 Tage)
cui,xingxing
cui,xingxing am 29 Okt. 2021
Kommentiert: Walter Roberson am 29 Okt. 2021
To get the full path and filename of the run in ".mlx", I used the mfilename function, but the full path of the file returned is not what I want.
How can I fix this please? Thanks in advance
p = mfilename('fullpath')
'/tmp/Editor_rdmrf/LiveEditorEvaluationHelperEliveEditorEB64F562'
But using it in the ".m" file is the result I want
  1 Kommentar
Walter Roberson
Walter Roberson am 29 Okt. 2021
mfilename cannot be made to work for this purpose due to the way that mlx are implemented.
There are posts showing how to get the mlx name. It is a bit of a nuisance.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by