MATLAB: What is the number in a position in an array arrayposition; Lets say I have an array: m = [1 4 8 19 21 30] Whar function do I use to find out what number is in position 2 of array m? Best Answer Indexing:m(2) Related SolutionsMATLAB: Find the rank of a element in a an array of numbers v=[4 5 2 7 8]idx=find(v==2) MATLAB: How to divide this data The sorting is relatively easy with indexing.rank = [18 9 15 17 2 10 13 14 20 5 11 7 8 6 4 19 3 16 1 12 21]ranka = rank(1:2:end); % Pull odd numbers (starts at 1)rankb = rank(2:2:end); % Pull even numbers (starts at 2)I'm not sure what you mean about the selection of x = Related QuestionFinding elements of an arrays having specified index numbersHow to find the position of a number in an arrayHow to find the number of occurrences of NaN and the corresponding subscripts in an arrayPosition of an arrayHow to specify a number to the specified position in the array?
Best Answer