U can use the isequal command to compare between structs.
And if the result is 1,u can remove those fieldname like for example:
function B = column_removal(A,n)
A = [1 2 3; 4 5 6];
B = A;
In this example u will be removing the 2nd coulmn.