Code covered by the BSD License  

Highlights from
sandpile

5.0

5.0 | 2 ratings Rate this file 4 Downloads (last 30 days) File Size: 2.5 KB File ID: #18215
image thumbnail

sandpile

by Wolfgang Schwanghart

 

04 Jan 2008 (Updated 04 Jan 2008)

sandpile cellular automaton according to Bak & Paczuski

| Watch this File

File Information
Description

Reduced complexity, cellular automaton model (CA) of a sandpile on a 2-dimensional grid. Each time step a sandgrain is added to a random location on the grid. When the critical number of grains in a cell exceeds 3 all grains in the cell are turned to the 4 neighbors (v. Neumann Neighborhood). This avalanche may prograde and trigger even more avalanches. After a while the sandpile comes to a state of self-organized criticality.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
12 Jul 2010 liu wei

Why it can't run?And Matlab say"??? function [nrgrains,nrout,avsize] = sandpile(siz,nrsteps)
    |
Error: Function definitions are not permitted at the prompt or in scripts.
".Please give me a hand!Thank you very much!

13 Jul 2010 Wolfgang Schwanghart

The error says all: Don't use the function definition in the prompt. Please try following: Type in the command window

help sandpile

than copy the lines in the example and paste them. Does that work?

13 Jul 2010 liu wei

It still didn't work!And there is no "sandpile" in the matlab?What I can do now ?Thank you !
 
 

13 Jul 2010 Wolfgang Schwanghart

Dear Liu, I can hardly help you here. Do you have sandpile on a search path or in your working direcotry? Please verify that.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
cellular automaton Wolfgang Schwanghart 22 Oct 2008 09:41:53
neighborhood Wolfgang Schwanghart 22 Oct 2008 09:41:53
reduced complexity Wolfgang Schwanghart 22 Oct 2008 09:41:53

Contact us at files@mathworks.com