About 6,140,000 results
Open links in new tab
  1. Array Indexing - MATLAB & Simulink - MathWorks

    In MATLAB®, there are three primary approaches to accessing array elements based on their location (index) in the array. These approaches are indexing by position, linear indexing, and …

  2. Matrix Indexing in MATLAB - MATLAB & Simulink - MathWorks

    Apr 2, 2011 · Indexing into a matrix is a means of selecting or modifying a subset of elements from the matrix. MATLAB ® has several indexing styles that are not only powerful and flexible, …

  3. ind2sub - Convert linear indices to subscripts - MATLAB

    To get the linear indices of matrix elements that satisfy a specific condition for matrix A, you can use the find function with one output argument. To get the subscript indices, use the find …

  4. find - Find indices and values of nonzero elements - MATLAB

    This MATLAB function returns a vector containing the linear indices of each nonzero element in array X.

  5. Finding the index of spesific element in a matrix? - MATLAB …

    May 23, 2019 · Lets say we have matrix: a=[ 2, 3, 5 3, 4, 7 4, 4, 4] ; I want to know index of a(4) which is the bold 3. This is just an example. I want to learn how to find index of a(n).

  6. Array Indexing - MATLAB & Simulink - MathWorks

    Sep 10, 2011 · When you want to access selected elements of an array, use indexing. For example, consider the 4-by-4 matrix A : A = [1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16]

  7. Taking the last value of a matrix or vector - MATLAB Answers

    Sep 9, 2011 · To access the last element of a vector in MATLAB regardless of its length, you can use the end keyword. This allows you to dynamically reference the last element without having …

  8. How do I find the indices of the maximum (or minimum) value of …

    Oct 7, 2009 · To find the indices of all the locations where the maximum value (of the whole matrix) appears, you can use the "find" function. …

  9. Find Array Elements That Meet Conditions - MATLAB & Simulink

    This example shows how to filter the elements of an array by applying conditions to the array. For instance, you can examine the even elements in a matrix, find the location of all 0s in a …

  10. Creating, Concatenating, and Expanding Matrices - MATLAB

    You can add one or more elements to a matrix by placing them outside of the existing row and column index boundaries. MATLAB automatically pads the matrix with zeros to keep it …

Refresh