MATLAB: How to delete particular row from struct array

deletestruct

Hi
I want to know is there any passible method to delete the entire data related to particular column value in struct array.

Best Answer

Hi, I think you are looking for this:
s=rmfield(s,field)
example of use:
s.a=1;
s.b=2;
s.c=3;
>> s
s =
a: 1
b: 2
c: 3
s=rmfield(s,'a');
>> s
s =
b: 2
c: 3