Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to HTTP GET or POST with Matlab or Octave?

In Matlab Function Alphabetical Reference I only found the following function:

  • web - Open Web site or file in Web or Help browser

Isn't there a way of accessing a web resource without opening a browser? Or how to close the browser?

I tried web stackoverflow.com -browser and it doesn't open the browser, but fiddler tells me that no web resource was fetched because of this command.

Edit Somehow Fiddler doesn't gets the Matlab http traffic, so I guess that the web url -browser command works for me, but I'd rather use the urlread command as suggested

like image 234
Jader Dias Avatar asked Nov 07 '10 15:11

Jader Dias


People also ask

Is Matlab and Octave compatible?

Octave is mostly compatible with Matlab. Most matlab functions can be made to run with very little change. With careful coding, you can get your code to run without change in Matlab and Octave. This document outlines the things that you need to watch out for.

Is Matlab the same as octave?

MATLAB is a matrix laboratory, referred to as language used for technical computations. Octave is programming language used for numerical computations.

How do I run an octave in Matlab?

Simply type the filename without extension . Type run("filename. m") in the command line of Octave . Then press ctrl + c to exit the file in middle of the run .


1 Answers

urlread might do the job. In case of proxy issues this post might help as well.

Looking at the implementation you might see that The MathWorks is heavily relying on Java libraries.

like image 130
zellus Avatar answered Oct 10 '22 18:10

zellus