MATLAB: Find row and column in 10 by 2 matrix that contain a particular row element finding indexesmaskingMATLAB i have a matrix of 20 by 2 data=[3 3;4 4;5 3;6 2;12 3;8 7;8 9;10 10;4 14;12 14;-5 2;-4 4;-6 2;-10 2;-5 5;-5 10;-5 12;-12 4;-9 10;-9 8] and i want row and column which contaion [6 2]. How i can do that. thank u Best Answer rows = ( data(:,1)==6 & data(:,2)==2 ) Related SolutionsMATLAB: How to divide this array problem data = [6 7 5 3 4 1 2];dataA =[data(1) data(2:2:end)];dataB =[data(1:2:end)]; MATLAB: Finding a row in matrix Read about ismembera=[1 2 3;5 8 9 ;5 6 4;1 2 5] ;b = [5 6 4] ;idx = find(ismember(a,b,'rows')) Related QuestionHow to place values in given column indexesPercentage of a value in a table rows matlabHow can i compare the elements of two matrices A(m*5) and B(n*5) in each row and see if they matchHow to modify a matrix to change the entries >=0 and multiply it by 5 AND to change the entries <0 and add 2 to those entriesDear all: I have a 5*2 matrix. i want to find out the row and column of a special value.let A=[1 2;4 5; 1 8;2 6;9 7] I want to find the row and column of 9 and 7.how can i do thisIs it possible to use the Runge-Kutta method to solve 2nd order ODE (without converting or converting) it into 2 first order state equations
Best Answer