User Tools

Site Tools


gibson:teaching:spring-2018:math445:surfer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gibson:teaching:spring-2018:math445:surfer [2018/03/06 08:22]
gibson removed
gibson:teaching:spring-2018:math445:surfer [2018/03/21 09:17] (current)
gibson created
Line 1: Line 1:
-This is the Matlab script ''​surfer.m''​ from Clive Moler'​s //Numerical Computing in Matlab//. Licensing is undetermined,​ I hope I'm safe... 
- 
 <file matlab surfer.m>​ <file matlab surfer.m>​
 function [U,G] = surfer(root,​n) function [U,G] = surfer(root,​n)
Line 18: Line 16:
 %    it may be necessary to have the operating system terminate MATLAB. %    it may be necessary to have the operating system terminate MATLAB.
 %    Key words from such URLs can be added to the skip list in surfer.m. %    Key words from such URLs can be added to the skip list in surfer.m.
 +
 +%   ​Copyright 2014 Cleve Moler
 +%   ​Copyright 2014 The MathWorks, Inc.
  
 % Initialize % Initialize
Line 23: Line 24:
 clf clf
 shg shg
-set(gcf,'​doublebuffer','​on'​) 
 axis([0 n 0 n]) axis([0 n 0 n])
 axis square axis square
Line 56: Line 56:
       set(t2,'​string',''​);​       set(t2,'​string',''​);​
       drawnow       drawnow
-      page = urlread(U{j});+      page = webread(U{j});
    catch    catch
       set(t1,'​string',​sprintf('​fail:​ %5d %s',​j,​U{j}))       set(t1,'​string',​sprintf('​fail:​ %5d %s',​j,​U{j}))
gibson/teaching/spring-2018/math445/surfer.txt ยท Last modified: 2018/03/21 09:17 by gibson