如何将matlab中的urlread函数与url地址本身的变量输入一起使用?
例如:
我可能希望读取:http://maps.googleapis.com/maps/api/geocode/json?latlng=22,77&sensor=true,而不是键入纬度和经度值(22,77)。我只需要在mfile中写入变量名,然后在每次运行该文件时使用不同的值调用它
发布于 2013-05-14 19:08:38
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;https://stackoverflow.com/questions/16541414
复制相似问题