Skip to Main Content Skip to Search
Product Documentation

iptcheckmap - Check validity of colormap

Syntax

iptcheckmap(map, func_name, var_name, arg_pos)

Description

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 is a string that specifies the name used in the formatted error message to identify the function checking the colormap.

var_name is a string that 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.

Examples

bad_map = ones(10);
iptcheckmap(bad_map,'func_name','var_name',2)

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

See Also

iptcheckhandle | iptcheckinput | iptchecknargin | iptcheckstrs

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS