bug? in create_set

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

bug? in create_set

Ross A. Lippert

> create_set([1 1])
issues an "empty matrix found" warning.  This is in 2.1.31, but
not in 2.0.14 which used a different implementation of create_set.

The source of the problem is the line

y = y( [1, find (y(1:nelx-1) != y(2:nelx)) +1]);

I'm wondering if that could be replaced with

y = y ( find( y != [NaN y(2:nelx)] ) );

or would that be too much of a hack?