kindly explain me about the following line

Vt = zeros(img_h, img_w, 4);

i know the following line if(img_h=2, img_w=3)

zeros (img_h, img_w)=[0 0 0; 0 0 0]

but i cant clearly understand the third dimention

Skip to content# MATLAB: Third index in three dimention array

3dindex

kindly explain me about the following line

Vt = zeros(img_h, img_w, 4);

i know the following line if(img_h=2, img_w=3)

zeros (img_h, img_w)=[0 0 0; 0 0 0]

but i cant clearly understand the third dimention

## Best Answer