Owning Class: plots
Requires: MathScript RT Module
imagescaled(z)
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. |
This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.
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])