From: M on

> Sorry, I don't know Simulink and models at all, and so have no idea what
> kind of value needs to be used in set_param for that parameter. Possibly
> passing it choicestr instead of choice would work... I don't know. If
> your choices are not numeric then you certain do not want the str2double
> step.

using choicestr instead of choice worked...thank you for your help
From: M on
i have another problem in this area. If i want the pop up menu to have text on it but this text equals a number, what is the modified code?
From: Walter Roberson on
M wrote:
> i have another problem in this area. If i want the pop up menu to have
> text on it but this text equals a number, what is the modified code?

If passing choicestr does not work for that, then go back to the
original code I suggested.
From: M on
Walter Roberson <roberson(a)hushmail.com> wrote in message <ho3gvv$7v$1(a)canopus.cc.umanitoba.ca>...
> M wrote:
> > i have another problem in this area. If i want the pop up menu to have
> > text on it but this text equals a number, what is the modified code?
>
> If passing choicestr does not work for that, then go back to the
> original code I suggested.

but surely the text in the pop up menu must equal a number in the code?