home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / octa21eb.zip / octave / SCRIPTS.ZIP / scripts.fat / control / abcddims.m < prev    next >
Text File  |  1999-04-29  |  1KB  |  34 lines

  1. # Copyright (C) 1993, 1994, 1995 John W. Eaton
  2. # This file is part of Octave.
  3. # Octave is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU General Public License as published by the
  5. # Free Software Foundation; either version 2, or (at your option) any
  6. # later version.
  7. # Octave is distributed in the hope that it will be useful, but WITHOUT
  8. # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  10. # for more details.
  11. # You should have received a copy of the GNU General Public License
  12. # along with Octave; see the file COPYING.  If not, write to the Free
  13. # Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  14.  
  15. function [y,my,ny] = abcddims (x)
  16.  
  17. # Usage: [y,my,ny] = abcddims (x)
  18. #
  19. # Used internally in abcddim.  If x is a zero-size matrix, both dimensions
  20. # get set to 0.  my and ny are the row and column dimensions of the result.
  21.  
  22. # Written by A. S. Hodel (scotte@eng.auburn.edu) Feb 1997
  23.  
  24.   y = x;
  25.   if(isempty(y))
  26.     y = [];
  27.   endif
  28.   [my,ny] = size(y);
  29. endfunction
  30.