Ignore:
Timestamp:
04/19/10 14:26:25 (15 years ago)
Author:
jschierm
Message:

QMU with Dakota: addition of two new utilities and some error message changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Array/item2str.m

    r33 r3569  
    1717    svec=num2str(a);
    1818else
    19     warning('item2str:item_unrecog',...
    20         'Item ''%s'' is of unrecognized type ''%s''.',...
    21         inputname(1),class(a));
     19    if ~isempty(inputname(1))
     20        warning('item2str:item_unrecog',...
     21            'Item ''%s'' is of unrecognized type ''%s''.',...
     22            inputname(1),class(a));
     23    else
     24        warning('item2str:item_unrecog',...
     25            'Item %d is of unrecognized type ''%s''.',...
     26            1,class(a));
     27    end
    2228    return
    2329end
Note: See TracChangeset for help on using the changeset viewer.