This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.


Check validity of colormap


iptcheckmap(map, func_name, var_name, arg_pos)


iptcheckmap(map, func_name, var_name, arg_pos) checks the validity of the MATLAB® colormap and issues a formatted error message if it is invalid.

func_name specifies the name used in the formatted error message to identify the function checking the colormap.

var_name specifies the name used in the formatted error message to identify the argument being checked.

arg_pos is a positive integer that indicates the position of the argument being checked in the function argument list. iptcheckmap includes this information in the formatted error message.

Code Generation support: Yes.

MATLAB Function Block support: Yes.


bad_map = ones(10);

The following shows the format of the error message and indicates which parts you can customize using iptcheckmap arguments.

More About

collapse all

Code Generation

This function supports the generation of C code using MATLAB Coder™. For more information, see Code Generation for Image Processing.

MATLAB Function Block

You can use this function in the MATLAB Function Block in Simulink.

Introduced before R2006a

Was this topic helpful?