will reset the field to empty (which is what I usually do because I use an isempty(...) test when using the data)
handles = rmfield( handles, 'data' );
would remove the field.
clear is used for clearing variables, you can't clear a field of a structure with it.
would be valid syntax, but do not do this in a GUI as it will remove the whole structure and make your GUI unusable.
0 件のコメント
サインインしてコメントする。