Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How to represent binary array (slot occupied = 1, slot open = 0) in the form of colored squares

$
0
0

@amoghb13 wrote:

Hi I want to represent a binary (0-1) array in the form of an image. E.g. if A[1,1] = 1, then square [1,1[ would be represented as black colored square otherwise it will be represented as white colored square if A[1,1] = 0.

Please tell me what packages to use and how code should be written

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images