Getting output from Simulink using m-file (link for m-file in simulink)

Hi, I wanna create a link in Simulink, something like a link that exist in "ssc_engine_cooling_system". See image below:
What shall I do? Thank you

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 14 Aug. 2018
Double click the annotation box to enter the "edit" mode, hover over the hyper link and right click, select "Hyperlink ..." and you will see the dialog.
If you want to start from your own, create an annotation text, select them and then right click, select "Hyberlink ..." and then specify "matlab:YourMfile".

3 Kommentare

Amir Xz
Amir Xz am 15 Aug. 2018
Bearbeitet: Amir Xz am 15 Aug. 2018
It's worked for OPEN the m-file, but needed address of m-file:
matlab:edit D:\...\testMfile
But for RUN the m-file, I had to change the "Current Folder" to m-file location before click on the link, otherwise it shows an error!
Oh, thank you by the way.
Okay, "matlab:" should not be there.
You can add the folder into MATLAB path.
Or, put in "run('fullpath\testMfile')"
Thank you so so much. It's worked:
matlab:run fullpath\testMfile

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Simscape Multibody finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2016b

Gefragt:

am 14 Aug. 2018

Kommentiert:

am 15 Aug. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by