From: Lukas R. <luk...@gm...> - 2012-09-16 04:57:39
|
On 15.09.2012, at 16:52, Jordi Gutiérrez Hermoso <jo...@oc...> wrote: > Lukas, > > This is just off the top of my head and I didn't look at your code in > detail, but how about using a struct instead of a cell to pass the > arguments and getting the names of the variables with the fieldnames > function? > > HTH, > - Jordi G. H. Hi Jordi Hmm, I was looking for a solution for bode (lticell{:}), not a workaround ;-) In control-2.3.54 I've just released, I used the following two hacks in the bode and nyquist functions: BODE: ----- try legend_args = cat (2, legend_args, inputname(sys_idx(k))); # watch out for bode (lticell{:}) end_try_catch NYQUIST: -------- try legend_args{k} = inputname(sys_idx(k)); catch legend_args{k} = ""; end_try_catch Thanks again for your responsive help and best regards, Lukas |