Missing components in Web built-in function?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (4)
Miguel Gaspar
el 24 de Abr. de 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 comentarios
Guillaume Galibert
el 8 de Mayo de 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
tsubasa244
el 3 de Ag. de 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.
0 comentarios
Abbas Cheddad
el 4 de Ag. de 2016
1 comentario
awirsing
el 23 de Oct. de 2020
Hi,
I have the same issue with Matlab R2018b. Can you describe the original workaround please.
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!