k-Wave Toolbox |

## Build Your Own Simulation

After running the various examples included within the k-Wave toolbox, it is straightforward to build your own simulation by using the existing examples as templates. To get started:

- open the list of examples,
- click on an example, eg. the Homogeneous Propagation Medium Example,
- click open the file to open the m-file in the MATLAB Editor, and
- save the file with a new name (in a directory that is on the MATLAB path) and make the changes you want.

For example, you could:

- change the size of the simulation grid,
- change the properties of the propagation medium,
- define a new initial pressure distribution,
- change the shape or type of sensor used to collect the data, or
- modify the default visualisation and computation options.

If you encounter any problems, try reading the Troubleshooting section.

Back to Top

© 2009-2014 Bradley Treeby and Ben Cox.