Prev: Help needed with manipulating a Cell Array
Next: Manipulating space delimited cell array text data
From: Maxx Chatsko on 5 Aug 2010 16:19 Hello all, When you ask MatLab isempty(struct(n)) where n corresponds to an empty [], why does is return false? Any way to delete empty [] that are in a structure? Thanks Maxx
From: Matt Fig on 5 Aug 2010 16:32 "Maxx Chatsko" <chatskom(a)chemimage.com> wrote in message <i3f6bp$cdb$1(a)fred.mathworks.com>... > Hello all, > When you ask MatLab isempty(struct(n)) where n corresponds to an empty [], why does is return false? Any way to delete empty [] that are in a structure? > Thanks > Maxx I get the expected: >> isempty(struct([])) ans = 1 What version are you using, and are you sure isempty(n)?
From: Walter Roberson on 5 Aug 2010 16:36 Maxx Chatsko wrote: > > When you ask MatLab isempty(struct(n)) where n corresponds to an > empty [], why does is return false? Any way to delete empty [] that are > in a structure? Could you give an example? 2008b, >> n = [] n = [] >> isempty(struct(n)) ans = 1 Are you perhaps asking about isempty(struct) which does return false?
From: Maxx Chatsko on 5 Aug 2010 16:55 Walter Roberson <roberson(a)hushmail.com> WOW! Sorry I must have just screwed it up. Long day?
|
Pages: 1 Prev: Help needed with manipulating a Cell Array Next: Manipulating space delimited cell array text data |