⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 brownian.m

📁 有趣的可视的数值方法 出自网站http://www.mathworks.com/moler
💻 M
字号:
% BROWNIAN   Two-dimensional random walk.%   What is the expansion rate of the cloud of particles?shgclfset(gcf,'doublebuffer','on')delta = .002;x = zeros(100,2);h = plot(x(:,1),x(:,2),'.');axis([-1 1 -1 1])axis squarestop = uicontrol('style','toggle','string','stop');while get(stop,'value') == 0   x = x + delta*randn(size(x));   set(h,'xdata',x(:,1),'ydata',x(:,2))   drawnowendset(stop,'string','close','value',0,'callback','close(gcf)')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -