Missing components in Web built-in function?
조회 수: 5 (최근 30일)
이전 댓글 표시
Hi!
I have a persistent problem across the different MATLAB versions (R2012a and R2012b, 32 bit) which is related to a compilation of a code containing "web url -browser" line. The line works perfectly fine on the MATLAB software (and previous version of compilers like 7.14) but when compiled into an exe file using the recent MCRs (R2012a/b), the following error pops out:
Undefined variable "helpUtils" or class "helpUtils.removeDotsFromFilePath". Error in web (line 125)
Could it be a problem in the "web" built-in function missing some routines?
What I am trying to display is a local folder in the browser and I am using Windows 7. I tried many options:
web url -browser
web url
web (url, '-browser')
web(['file:///' url])
where url is the path to a specific folder on the local disk.
Any help/alternatives would be greatly appreciated.
댓글 수: 0
답변 (4개)
Miguel Gaspar
2013년 4월 24일
Hello Abbas,
I hope you have managed to solve your problem, despite the lack of any help here... Anyway, for me the problem was solved by copying the file web.m from %matlabroot%/toolbox/help, and adapting it to what I needed, working around the calls to helpUtils (in fact, I only copied and adapted the openMatlabBrowser sub-function). In my case, I wanted to display a local file embedded in the application, which required some more tweaks - look at how the function imread does it.
Miguel Gaspar
댓글 수: 2
Guillaume Galibert
2014년 5월 8일
Hi Miguel,
I'm trying to use web in a compiled project as well. In my case I want to point it towards a web url and open the system browser. I have tried to copy web.m and modify it for my own purpose like you did. It works well in Matlab but nothing happens in my standalone application without any error message...
If by any chance you have any idea.
Many thanks in advance,
Guillaume.
PS.: I use Matlab R2012b
tsubasa244
2016년 8월 3일
Hi, I have now the same issue , I've compile a GUI Programm in exe file, it works in my computer, but dosent work on the computer which hat mcr but no matlab. and on that computer show the same warning like urs. Could u please tell me ur solution? the URL link is now out of date...hopfully I can solve this issue.
thanks in advanced
B.T.
댓글 수: 0
Abbas Cheddad
2016년 8월 4일
댓글 수: 1
awirsing
2020년 10월 23일
Hi,
I have the same issue with Matlab R2018b. Can you describe the original workaround please.
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!