MATLAB: Change “Edit” uicontrols background (how to set a structure array element to a specific value?)

indexingMATLABstructure arrayvectorize

I have a row of "edit" uicontrols. The handles of these are in a vector (e.g. in c). I want to change the background color of each "edit" uicontrol.
hfig=figure(1);
clf;
c(1) = uicontrol(hfig...
,'Style','edit'...
,'Position',[20 20 60 20]...
);
c(2) = uicontrol(hfig...
,'Style','edit'...
,'Position',[20 50 60 20]...
);
If I try to change the background color
c.BackgroundColor= [1 0 0]
c(:).BackgroundColor= [1 0 0]
gives the same error:
"Expected one output from a curly brace or dot indexing expression, but there were 2 results."
Is it possible to do it this or similar way, or just the for loop is the solution? I would be happy if logical indexing would work changing just special edit boxes' Foreground!

Best Answer

set(c, 'BackGroundCOlor', [1 0 0])