First type

>> a= [

then paste (Ctrl^V)

then close bracket, and Enter \]

>> figure
>> imshow (a)

(or on the same line)

>> figure, imshow(a)