From: Anna Paulsen on
Hi Wayne,

dunno if you'll still see this - I got so caught up I forgot to answer your latest message to say thanks. The code did work successfully in the end, mainly due to your hints, so thanks!

-anna

PS @Oleg Thanks for the suggestion - I did look at it briefly, but in the end I was short on time and it was too much to take in. I've saved it for next time though.


>
> Hi Anna, how about replacing the if statement with
>
> if k == 1 && isequal(X,ones(T,1))
>
> Wayne
> wayne