How can I open an url into matlab browser?

48 次查看(过去 30 天)
Hi all,
I have this code:
[stat, h] = web('https://www.cambriafunds.com/tail-holdings','-new');
By default, Matlab opens the url into Chrome browser. However, I need to open it into Matlab browser. How can I do it? Many thanks!
Regards
  2 个评论
Marcel
Marcel 2022-11-8
Not sure if matlab has a browser. I know it has a HTML Control but its not going to allow urls as i just tried. But im curious if someone has a solution for this. Maybe there's an addon to that embeds something like a Chromium Browser like the C# Nuget Packet "CefSharp Chromium Browser". Would be cool!

请先登录,再进行评论。

采纳的回答

Jiri Hajek
Jiri Hajek 2022-11-9
That will not be possible according to the documentation ... (cit: "If url is an external site, then the page opens in your system browser. ")...
  5 个评论
Adriano
Adriano 2022-11-9
It's possible but Matlab should be give the possibility to choose which browser to use. I opened a support ticket. Let you know!
Jiri Hajek
Jiri Hajek 2022-11-9
OK, please accept the answer, if you agree...

请先登录,再进行评论。

更多回答(1 个)

Khushboo
Khushboo 2022-11-9
编辑:Khushboo 2022-11-9
Hello,
I think you will have to set the MATLAB Browser as the default browser instead of chrome which can be done using the following steps:
  1. To use the MATLAB browser as the default browser for external sites, go to the Home tab.
  2. In the Environment section, click Preferences.
  3. Select MATLAB > Web and in the System Web browser section, clear the Use system web browser when opening links to external sites.
More details regarding this can be found here.
Hope this helps!
  9 个评论
DGM
DGM 2024-3-2
getTableFromWeb was last updated 8 years ago. I wouldn't expect it to work, and the comments on the FEX page suggest that indeed, it hasn't been working for years. It does not work for me in R2019b or R2015b, so I have no idea when this actually broke or why.
I think it's clear that finding a roundabout way to fix an old broken FEX tool that relies on MATLAB features which apparently don't exist anymore is probably going to be a colossal waste of time. If what you need is to get dynamically loaded content from a web page, then that should be the discussion. I don't know of a good solution, but for sake of attracting help, it should probably be in a new question which focuses on your specific needs.
That said, even if it's not an option anymore, perhaps it would be worthwhile to mention why getTableFromWeb seemed satisfactory for your needs.
Viet Ha Tran
Viet Ha Tran 2024-3-2
Thanks for your quick reply and information. I would like to focus on the issue of opening a link in Matlab browser because as long as I could do that, my program using getTableFromWeb runs well without an error. With Matlab 2022a, I have tried opening Matlab browser manually (command 'web', barely), then my program ran well then. Therefore my question is (within this topic): with version 2022a, how can I open a link in Matlab browser by running script?
My need is to read data tables from webs periodically (and automatically) and getTableFromWeb is quite convinient. I do not know alternative ways to do so.
Thanks for your help!

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Web Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by