From: Michael C. <mic...@ua...> - 2004-09-08 11:16:44
|
Here's an answer to my own question that seems to work ok. Michael #include "error.h" <snip> int tmp = control(i).int_value(); if (error_state) { error("bfgsmin: 3rd argument must be a cell array of 4 integers"); return true; } On Wednesday 08 September 2004 12:25, Michael Creel wrote: > I can't see an easy way to check if an input argument to a DLD function is > an integer. > > I can check for a real scalar using foo.is_real_scalar(), > > What's the analogous way to check if it's an integer? > > I hope this is a stupid question! > > Michael > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Octave-dev mailing list > Oct...@li... > https://lists.sourceforge.net/lists/listinfo/octave-dev |