How can i generate programmatically an external hyperlink to open a subsystem within a local mdl from an external application?

3 ビュー (過去 30 日間)
Hello to everyone,
I know the question seems simple, but I have been googling on this for two hours and I found some examples using requiremnt user interface, but not only they seemed not to be applicable in my case, but also I need to do everything automatically from m-files! Could someone please tell me which command(s) are to be used in matlab??
Thanks and Regards
Chrysmac
ps: using Matlab r2012a student version
  1 件のコメント
Armand Chrystel Moutchiho
Armand Chrystel Moutchiho 2013 年 3 月 11 日
Hello
maybe there is a way to use a hyperlink which launches matlab and then execute a navigate command??

サインインしてコメントする。

回答 (2 件)

TAB
TAB 2013 年 3 月 11 日
Open and use matlab from other applocation using COM Interface.
Open the specific blocks/subsystems in the mode using open_system
  2 件のコメント
Armand Chrystel Moutchiho
Armand Chrystel Moutchiho 2013 年 3 月 11 日
Thanks for the reply Tab!
But I have some questions hereto!
- can you execute such a Com Interface from a url?
- don't you have to start matlab in order to use open_system() and its likes?(which wouldn't be an automated hyperlink anymore)!!!!!
Armand Chrystel Moutchiho
Armand Chrystel Moutchiho 2013 年 3 月 11 日
If this is more specific , I need togenerates a hyperlink which will run the command line in this example:
"C:\<a long path here>\matlab.exe" -nodisplay -nosplash -nodesktop -r "run('C:\<a long path here>\mfile.m');"
The example was found at

サインインしてコメントする。


Peisong Lou
Peisong Lou 2018 年 10 月 30 日
I give a simple method, hope it can give some help step 1: create m file, %% title % # text % click here. % # text % click here. step 2: use 'publish' function to generate html file (support other format, such as WORD PDF...) step 3: use 'web' function to open the html file you generated in step 2, then you can find a hyperlink in this find, click it, the subsystem will be highlight

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by