MATLAB: How to update a contourf plot

contourfMATLABrefreshdata

Hello,
i know, how to update a surface for example in a for-loop using:
set(hSurf, 'ZData', newZData)
set(hSurf, 'CData', newCData)
but how do i update a contourf plot? Here I quess i need somehow the contour matrix and the ZData.
Thank you for your help in advance.

Best Answer

Similarly
[~,hc] = contourf(Z);
hc.ZData = newZdata;
I don't see a CData property for contourf
Related Question