asp.netmatlabweb

Continously Publish Matlab Text Output to a Website


Is there a way I can, in real time, publish my Matlab output to a website.

Let's say for example, I wanted to display the time of the day. I would set Matlab to run a forloop to add 1 second, every 1 second. Could I continuously display that output on a website somehow?


Solution

  • Yes.

    Writing to a web site is simply uploading the html file to some specific directory.

    So, simply use Matlab's ftp API to upload your file, giving it the dir path on the server where you want the file written/uploaded to.

    See http://www.mathworks.com/help/techdoc/ref/ftpclass.html

    Create an html file from matlab, write it to disk, and then send it to the server using the above API