Q:

Matlab: find and replace missing value in a 1*1 struct with 34 fields

In Matlab, I have a 1*1 struct with 34 fields. every field is a 3d array by itself. A picture of it attached below. 
I want to have a code to find -9.969209968386869e+36 in everywhere of this struct and replace it with NaN.
here is a picture of it
Thank you in advance

A:

This might be less memory intensive than a cell conversion:
If your struct is called x,
names = fieldnames(x); % gets the names of the items in the struct
for i = 1:numel(names)
    x.(names{i})(x.(names{i})==-9.969209968386869e+36) = nan('single');
end

