Urlread in matlab with variables -
how can use urlread function in matlab variable inputs in url address itself?
for eaxmple:
may want read: http://maps.googleapis.com/maps/api/geocode/json?latlng=22,77&sensor=true instead of typing in latitude , longitude values(22,77). need write variable names in mfile, , call different values every time when running file
base_str = 'http://maps.googleapis.com/maps/api/geocode/json?latlng='; read_from_mat = foo_to_read_from_mat_returns_string(); url_str = strcat(base_str,read_from_mat,'&sensor=true'); urlread url_str;
Comments
Post a Comment