Unrecognized function or variable 'datachk'.
Error in contourf (line 55)
[pvpairs, ~, ~, errmsg, warnmsg] = matlab.graphics.chart.internal.contourobjHelper('parseargs', true, args{:});
solution:
Check you have put the correct parameters into contourf function.