how to know pixel' s value of matrix

hello i have a matrix (a)
a= [a b c d;
e f g h;
i j k l]
  • i wanna test/know the values of d,h,l and i j k l

 Accepted Answer

For the last column
a(:,end)
OR
a(:,4)
For the last row:
a(end,:)
OR
a(3,:)

More Answers (0)

Categories

Tags

Community Treasure Hunt

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

Start Hunting!