필터 지우기
필터 지우기

third index in three dimention array

조회 수: 1 (최근 30일)
Rd
Rd 2020년 7월 24일
댓글: Stephen23 2020년 7월 24일
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

채택된 답변

KSSV
KSSV 2020년 7월 24일
You matrices can be 1D, 2D, 3D or nD...where D stands for dimensional.
A = zeros(2,2,2) ;
The above A has 2 matrices of size 2X2 having zeros.
B = ones(3,4,5) ;
The above matrix has 5 matrices each os size 3*4.
I = imread("cameraman.tif") ;
size(I)
Check the size of I above. So nD matrices are possible, in your case third dimension stands for that.
  댓글 수: 1
Rd
Rd 2020년 7월 24일
Thank you for your clear explanation

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

madhan ravi
madhan ravi 2020년 7월 24일
Imagine that 2 X 3 matrix is copied 4 times.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by