I've tried this both at home and at work, using Firefox and Internet Explorer. Each time, I get the same "Error downloading URL." message. Any ideas?
I cant access any player's account with this ID (3803271). Are you sure there is a player with this ID?
Stupid Typo... :-(
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
lines=textread('nomination.m','%s');
id_own=str2num(regexp(lines{end},'\d+','match','once'));
x=uint64(nomination());
if x == uint64(id_own)
assignin('caller','score',-1);
error('Funny! You tried to nominate yourself!')
end
assignin('caller','score',x);
problem=2907;
html=urlread(sprintf('http://www.mathworks.com/matlabcentral/cody/problems/%d/solutions?term=size:%d',problem,id_own));
n=numel(regexpi(html,'solution \d+'));
if n < 1
error('Sorry. You are nominated by none.');
end
%_______
url = sprintf('https://www.mathworks.com/matlabcentral/cody/players/%d',x);
html = urlread(url);
c = regexp(html,'h1.+h1','match');
name = c{1}(4:end-4);
s = sprintf('____________________\n\nYou have nominated %s !!!',name);
disp(s)
Error: Error downloading URL. Your network connection may be down or your proxy settings improperly configured.
|
193 Solvers
196 Solvers
Back to basics 17 - white space
209 Solvers
44 Solvers
579 Solvers