The function "contourc" does not accept inputs of type single. Is there any existing workaround?
The follow code block produces an error when passing variables of type single as input into the "contourc" function.
lon = 5:5:50;lat = 5:5:50;grid = randi([0 50], 10, 10);contourValues = 5:5:50;contours = contourc(single(lon), single(lat), single(grid), single(contourValues));Error using contourcInput arguments for contourc must be of type 'double'.
Best Answer