How to extract a table from a financial website (Bartchart.com)?
4 次查看(过去 30 天)
显示 更早的评论
I'm quite new to Matlab and programming, and I'd like to extract the 5 day table from this website: https://www.barchart.com/stocks/quotes/$M1HX/performance
![barchart example.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218614/image.jpeg)
Both functions urlread and webread read almost all information, except the numbers. To me it seems like the numbers are not in the html-code, but the code refers to another location and then plots them. How can I extract these numbers?
0 个评论
回答(1 个)
Zenin Easa Panthakkalakath
2019-5-13
Hi Raphuel,
You could get started with this by using the 'webread' and 'getAttribute' functions. Have a look at the following documents for more information about the functions.
Regards,
Zenin
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!