Getting responses from a website

2 次查看(过去 30 天)
Connor Linnin
Connor Linnin 2022-4-22
回答: Suraj 2023-10-4
Hello,
Im trying to be able to insert text into a box on a website, through matlab, and then get the websites responce back to matlab all through running a .m file. As of now all the infomation I can get on this topic is about 'url' which, as to my knowledge, has been replaced by 'web' comands or has to be done through downloading different matlab extensions. Is there a way to comunicate with, and have matlab show the responce from a website without these extensions?
The webiste im using is "https://www.fourmilab.ch/documents/calendar/" and im trying to enter in a date and get the converted date to be shown by matlab.

回答(1 个)

Suraj
Suraj 2023-10-4
Hi Connor,
I understand that you'd like to use MATLAB to open and interact with a website. The website you've mentioned ( https://www.fourmilab.ch/documents/calendar/ ) looks like a tool to convert a date into various formats such as Julian, Islamic and Persian calendar dates.
I suggest that you check out MATLAB documentation and File Exchange for scripts or functions that can perform such date conversions. Here are a few links that I think you might find helpful:
  1. "juliandate()" function: https://www.mathworks.com/help/matlab/ref/datetime.juliandate.html
  2. "Date Converter: Gregorian, Persian, and Islamic calendars" on File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/67221-date-converter-gregorian-persian-and-islamic-calendars
I hope this helps!
Best regards,
Suraj.

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by