Effacer les filtres
Effacer les filtres

How can I open an url into matlab browser?

43 vues (au cours des 30 derniers jours)
Adriano le 7 Nov 2022
Commenté : Viet Ha Tran le 2 Mar 2024
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!
  2 commentaires
Marcel le 8 Nov 2022
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!
Adriano le 8 Nov 2022
Of course Matlab has a browser

Connectez-vous pour commenter.

Réponse acceptée

Jiri Hajek
Jiri Hajek le 9 Nov 2022
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 commentaires
Adriano le 9 Nov 2022
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 le 9 Nov 2022
OK, please accept the answer, if you agree...

Connectez-vous pour commenter.

Plus de réponses (1)

Khushboo le 9 Nov 2022
Modifié(e) : Khushboo le 9 Nov 2022
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 commentaires
DGM le 2 Mar 2024
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 le 2 Mar 2024
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!

Connectez-vous pour commenter.


En savoir plus sur Web Apps dans Help Center et File Exchange


Community Treasure Hunt

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

Start Hunting!

Translated by