k-Wave Toolbox |

# getkWavePath

Return pathname to the k-Wave Toolbox

## Syntax

    path = getkWavePath()
    path = getkWavePath(folder_name)

## Description

`getkWavePath` returns the full pathname to the root directory in the k-Wave Toolbox using the slash direction native to the users operating system. If a `folder_name` string is provided, this is appended to the pathname.

## Optional Inputs

`folder_name` | folder name string to append to the pathname

Note `folder_name` is not checked for existence, the string is simply appended to the pathname with a trailing slash.

## Outputs

`path` | full pathname to the root directory in the k-Wave Toolbox

© 2009, 2010, 2011 Bradley Treeby and Ben Cox.