Mercurial > forge
changeset 12508:ea796fbdadf7 octave-forge
Added error message
author | rafavzqz |
---|---|
date | Tue, 15 Jul 2014 16:54:30 +0000 |
parents | bb9135dcce26 |
children | 3da251f2ae4b |
files | extra/nurbs/inst/nrbunclamp.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extra/nurbs/inst/nrbunclamp.m Mon Jul 14 14:59:37 2014 +0000 +++ b/extra/nurbs/inst/nrbunclamp.m Tue Jul 15 16:54:30 2014 +0000 @@ -38,6 +38,10 @@ % You should have received a copy of the GNU General Public License % along with this program. If not, see <http://www.gnu.org/licenses/>. + if (iscell (crv.knots)) + error ('nrbunclamp: the function is only implemented for curves') + end + p = crv.order - 1; U = crv.knots; n = crv.number;