I know this is a basic question, but I couldn´t find an answer from what I´ve read. I want to find a column number of a certain number.
m = [1 2; 3 4 ; 5 6; 7 8] is my matrix and I want to find the column number of 3. It should be 1. I used the function ´find´ , but I don´t understand the result I get. How to find this? Thank you!
>> m=[ 1 2; 3 4; 5 6; 7 8]m = 1 2 3 4 5 6 7 8 >> [raw,col] = find(3)raw = 1col = 1
Best Answer