필터 지우기
필터 지우기

Missing components in Web built-in function?

조회 수: 5 (최근 30일)
Abbas Cheddad
Abbas Cheddad 2013년 2월 14일
댓글: awirsing 2020년 10월 23일
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.

답변 (4개)

Miguel Gaspar
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
Abbas Cheddad
Abbas Cheddad 2013년 4월 24일
편집: Abbas Cheddad 2016년 8월 4일
Hi Miguel,
Thank you for the suggestion. Well, I did get a reply from Mathworks and what they said is that it is a known issue [to them] which will be fixed in a future release. For a workaround see here:
Cheers, Abbas
Guillaume Galibert
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

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


Abbas Cheddad
Abbas Cheddad 2014년 5월 8일
Hi Guillaume,
Based on my test below, I guess the problem (the bug) is persistent only in MATLAB Compiler R2012a&b.
MATLAB Version 7.13.0.564 (R2011b) (Both web & internal call work)
MATLAB Version: 8.3.0.532 (R2014a) (Both web & internal call work)
MATLAB Version: 7.14.0.739 (R2012a) (Web works, internal call does not work) MATLAB Version: 8.0.0.783 (R2012b) (Both web & internal call don't work)
Have you tried the solution suggested by MATLAB's staff at: http://www.mathworks.com/support/solutions/en/data/1-JCBZJG/index.html
Cheers, Abbas

tsubasa244
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.

Abbas Cheddad
Abbas Cheddad 2016년 8월 4일
Hi all!
With the MATLAB R2016a release, the issue is apparently fixed.
All the best! Abbas
  댓글 수: 1
awirsing
awirsing 2020년 10월 23일
Hi,
I have the same issue with Matlab R2018b. Can you describe the original workaround please.

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

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by