Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

imagescaled (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: plots

Requires: MathScript RT Module



imagescaled(z, [lo, hi])

imagescaled(x, y, z)

imagescaled(x, y, z, [lo, hi])

Legacy Name: imagesc


Plots a scaled image by mapping the image range to the current color map. imagescaled(z) plots the (i, j)-th element of z against i and j, so that LabVIEW derives the plotted axes from the index values of the image. imagescaled(x, y, z) plots the j-th element of x, the i-th element of y, and the (i, j)-th element of z. LabVIEW first scales each element in z into the index range of the color map and then plots each element as the color of the color map at that index value.



Name Description
x Specifies a real vector. The length of x must equal the number of columns in z.
y Specifies a real vector. The length of y must equal the number of rows in z.
z Specifies a real matrix.
lo Specifies the minimum value of the color scale. LabVIEW maps all elements in z that are less than or equal to lo to the first indexed color.
hi Specifies the maximum value of the color scale. LabVIEW maps all elements in z that are greater than or equal to hi to the last indexed color.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (always ignored)
Supported on RT targets No


t = 0:0.1:1;
[X, Y] = meshgrid2d(0:0.1:1);
Z = sqrt(X.^2+Y.^2);
imagescaled(t, t, Z, [0.5, 1])

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful