File Exchange

image thumbnail

new useful urlread-urlreadv

version 1.0 (1.35 KB) by

function urlreadv solves most of the "Error downloading URL" problem caused by "urlread"

0 Downloads

Updated

View License

  urlreadv Returns the source code of a URL as a string.
  Syntax:
  html=urlreadv(URL);
  Description: urlreadv is a function based on java,it solves some
  problems of the function "urlread",such as "Error downloading URL" and
  avoid unreadable codes or gibberish while loading source code that contains
  Chinese charcaters

Comments and Ratings (1)

Renwen Lin

% MY AIM IS: to transform location/address to Latitude and Longitude by
% GOOGLE MAP API.

clc; clear;
KEY='ABQIAAAA7VerLsOcLuBYXR7vZI2NjhTRERdeAiwZ9EeJWta3L_JZVS0bOBRIFbhTrQjhHE52fqjZvfabYYyn6A';
loc0 = '上海'; loc1 = 'Shanghai';
url0 =['http://maps.googleapis.com/maps/geo?q=' loc0 '&output=json&sensor=true_or_false&hl=zh-CN&key=' KEY '®ion=GB'];
[str2] = urlreadv(url0); % line (1)
% web(url0, '-browser') % line (2)

% MY PROBLEM IS: The result of line(1) differ from line(2);
% Please help me on this issue?

MATLAB Release
MATLAB 7.11 (R2010b)
Acknowledgements

Inspired: urlread2

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video