About 26,000 results
Open links in new tab
  1. how to select specific values in a matrix - MATLAB Answers

    Nov 18, 2013 · Hi I will give an example, I have a 10X10 matrix, I want to select the 4th value in the first row, the 7th value in the 4th row and value 5 onwards on the 3rd row, and selecting multiple values from different rows.

  2. Array Indexing - MathWorks

    Jan 1, 2018 · 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 logical indexing. You can also use mixed indexing by combining both positional and logical indexing.

  3. Accessing Array Elements - MathWorks

    To reference a particular element in an array, specify its row and column number using the following syntax, where A is the matrix variable. Always specify the row first and column second.

  4. How to call specific value of array in MATLAB? - namso-gen.co

    Jun 20, 2024 · How do I call a specific value if I only know its target value in the array? You can use the `find` function to locate specific values in an array. For example, to find the indices of all occurrences of the value 5 in array `A`, you can use `find(A == 5)`.

  5. Get values of elements at specific indices in a matlab matrix

    Feb 11, 2014 · I was wondering if there is a quick way in matlab (pretty sure there is and I just don't know it!) to get all the values of an array at specific indices. Example: If I have an array: a = [1,3,5,7,9]

  6. Retrieving specific elements in matlab from arrays in MATLAB

    First, the bsxfun function. This performs a function, here it is addition (@plus) on each element of a vector. Since you want elements 1:4 we make this one dimension and the other dimension increases by tens. this will lead a Nx4 matrix where N is the number of …

  7. matlab - Find indices of elements in an array based on a search …

    Jan 23, 2015 · I want to find the indices of the values of b in a (only the first hit) ie: c = [3, 6, 5]; Is there an easy Matlab native way to do this without looping and searching.

  8. How do I get MATLAB to extract a specific value in an array?

    Feb 19, 2014 · I’m looking to identify the indices in column 1 when the data in column 2 is less than 105, and then extract the first actual value from column 1 that meets this criteria. >> BB = (AA(:,2) < 105) results in:

  9. How to extract values from an array and write at a specific

    Nov 6, 2012 · If the first column of the array 1.txt contains a value assigned in M, then I extract the corresponding value from the second column of 1.txt and write in the cell of the matrix designed for it (first row and j-column).

  10. How to Find Index of Element in Array in MATLAB?

    Jul 4, 2021 · MATLAB provides functionality that finds the indices and values of all non-zero elements in a vector or multidimensional array; the find() function. The find function with required parameters gives back a vector containing indices of non …

  11. Some results have been removed