Calq commands and keywords

Command

imshow

Definition

This command opens a window that shows the matrix as an image. Colors are red, green, and blue, with 256 shades each. They are stored in as a 3-Dimensional number as (red, green, blue).

Example

The code below defines a 100x100x3 matrix, with default values of 255. So the background will be white. It then makes the red component of a vertical line 0, then makes the green component of the same line 0. When the image displays, you see a blue line.

  a = ones(100,100,3) * 255;
  a(1:100, 50, 1) = 0;
  a(1:100, 50, 2) = 0;
  imshow(a);

See also

imread. plot. reshape.


What is Calq?
Latest version of Calq
Digital Wave Systems Lab homepage