MATLAB: Position of element in a row homeworksort Hi, I have a 3 x 2 matrix, A: A = [1 2 3; 3 5 4] How can I find the position of the number 3 in each row? I want to create B = [3;1] Any help would be aprpeciated! Inna Best Answer Use second output of find()help find Related SolutionsMATLAB: List of maximum number in the matrix a = [3;1;4;2;3;4;1;4;3;1;2;4];idx=find(ismember(a,max(a))) MATLAB: Find indices of one array in another array. [~,idx]=setdiff(A,B,'rows');idx_rows=setdiff(1:size(A,1),idx) Related QuestionFind other element in row of a matrixHow i can create a n+1 column matrix from n column matrixAll possible sets from vectorCumnwise multiplication between a matrix and a vector.Could anyone help me how to display all the numbers inaddition to the numbers present.How to find position of value in matrix and write as another matrixHow to replace half the number of specific element in an array
Best Answer