[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: named arguments
From: |
Michael Goffioul |
Subject: |
Re: named arguments |
Date: |
Fri, 16 Mar 2012 16:43:58 +0000 |
On Fri, Mar 16, 2012 at 4:39 PM, John W. Eaton <address@hidden> wrote:
> On 16-Mar-2012, Jordi Gutiérrez Hermoso wrote:
>
> | Really? How? Without futzing around with varargin and testing for
> | string equality?
>
> Yes, you have to use varargin and look for strings.
>
> You could also use an option structure.
Use parseparams to extract key/value pairs, then struct to make a
structure for easy by-name access to variables. Not as easy as
python-way, but probably close enough.
Michael.
- named arguments, Juan Pablo Carbajal, 2012/03/16
- Re: named arguments, Olaf Till, 2012/03/16
- Re: named arguments, Michael Goffioul, 2012/03/16
- Re: named arguments, Jordi Gutiérrez Hermoso, 2012/03/16
- Re: named arguments, Jordi Gutiérrez Hermoso, 2012/03/16
- Re: named arguments, Olaf Till, 2012/03/16
- Re: named arguments, John W. Eaton, 2012/03/16
- Re: named arguments, Jordi Gutiérrez Hermoso, 2012/03/16
- Re: named arguments, John W. Eaton, 2012/03/16
- Re: named arguments,
Michael Goffioul <=
- RE: named arguments, Damian Harty, 2012/03/16
- Re: named arguments, Jordi Gutiérrez Hermoso, 2012/03/16
- Re: named arguments, fork, 2012/03/16
- Re: named arguments, John W. Eaton, 2012/03/16
- Re: named arguments, fork, 2012/03/16
- Re: named arguments, Miguel Bazdresch, 2012/03/16
- Re: named arguments, Francesco Potortì, 2012/03/17
- Re: named arguments, CdeMills, 2012/03/16