Changeset 3580
- Timestamp:
- 04/20/10 15:56:47 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk/src/m/utils/Array/string_dim.m ¶
r3572 r3580 11 11 end 12 12 13 % check for scalar 14 13 15 if (numel(a) == 1) && (idim == 1) 14 16 sdim=''; 15 17 return 16 18 end 19 20 % check for overflow 21 17 22 if (idim > numel(a)) 18 23 if ~isempty(inputname(1)) … … 24 29 end 25 30 end 31 32 % check for column or row vector (Matlab uses a minimum of two 33 % dimensions, so this won't match Matlab standard output) 34 35 if (ndims(a) == 2) && ((size(a,1) == 1) || (size(a,2) == 1)) 36 sdim =['(' num2str(idim) ')']; 37 return 38 end 39 40 % do the general case 26 41 27 42 asize=size(a);
Note:
See TracChangeset
for help on using the changeset viewer.