Date: Feb 17, 2013 6:21 AM Author: Shobana Subject: doubts in matlab Hai...

I am tried to find minimum value of particular columns and rows separately but i am getting wrong answers.

for example a = [1 2 3 ;

6 5 4;

8 1 7]

[x y] = min(a(2:end,2))

instead of getting x= 3 y =2 i am getting some other value.how to write correct code for this concept.

Thanks in advance