Skip to content

Commit

Permalink
update readme for inputparser
Browse files Browse the repository at this point in the history
  • Loading branch information
markuman committed Oct 8, 2015
1 parent 0f48903 commit 5b89696
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,18 @@ e.g.

### initialize redis class

>> help redis
redis mex client for Matlab and GNU Octave
r = redis()
r = redis(hostname)
r = redis(hostname, port)
r = redis(hostname, port, db)
r = redis(hostname, port, db, pwd)
r = redis(hostname, port, db, pwd, precision)
r = redis(hostname, port, db, pwd, precision, batchsize)
`redis()` class is using inputParser, so you can switch inputarguments as you like

>> help redis
redis mex client for Matlab and GNU Octave
r = redis()
r = redis('hostname', '127.0.0.1')
r = redis('port', 6379)
r = redis('dbnr', 0)
r = redis('password', 'foobar')
r = redis('precision', 16)
r = redis('batchsize', 128)
r = redis('hostname', 'some.domain', 'password', 'thisone')

### properties

Expand Down

0 comments on commit 5b89696

Please sign in to comment.