How to link to a .pdf-file in Matlab Simulink Mask Editor Documentation Help

조회 수: 2 (최근 30일)
Florian
Florian 2012년 10월 11일
Hello,
I am trying to link to a .pdf file in the documentation help part of the mask editor. The problem is that I do not want to set the whole path including C:\documents..., I just want to refer to a directory within the directory where the simulink model is stored. is there any possibility to do that?

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2012년 10월 22일
I think you can just use MATLAB commands like:
web('http://www.mathworks.com/products/datasheets/pdf/matlab.pdf', '-browser')
In the "Mask help" edit pane. Instead of the URL, just specifying a local path should also work. You could perhaps use the output of which(bdroot) to figure out the path to the current model.

Florian
Florian 2012년 11월 9일
This only works if the folder where the .pdf files are located is the current folder. Is there any other possibility to set a path that is universal. The problem is that I cannot set the path to C:\matlab etc. because not everyone who copies the simulink program on his machine puts it in the same folder.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2012년 11월 12일
Could you explain "set a path that is universal"? Is there a way to identify the path that the PDF exists at?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by