Missing components in Web built-in function?

4 views (last 30 days)
Abbas Cheddad
Abbas Cheddad on 14 Feb 2013
Commented: awirsing on 23 Oct 2020
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.

Answers (4)

Miguel Gaspar
Miguel Gaspar on 24 Apr 2013
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 Comments
Abbas Cheddad
Abbas Cheddad on 24 Apr 2013
Edited: Abbas Cheddad on 4 Aug 2016
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 on 8 May 2014
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

Sign in to comment.


Abbas Cheddad
Abbas Cheddad on 8 May 2014
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 on 3 Aug 2016
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 on 4 Aug 2016
Hi all!
With the MATLAB R2016a release, the issue is apparently fixed.
All the best! Abbas
  1 Comment
awirsing
awirsing on 23 Oct 2020
Hi,
I have the same issue with Matlab R2018b. Can you describe the original workaround please.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!