About 15,300,000 results
Open links in new tab
  1. 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 …

  2. Find the index of given value in an array - MATLAB Answers

    Apr 10, 2019 · The find function simply finds integer indices into an array that correspond to the logical expression you give it. It isn't magic. It can't find things that don't exist. Hence I used it …

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

    Jul 4, 2021 · You can use indexing to access the elements of the array. In MATLAB the array indexing starts from 1. To find the index of the element in the array, you can use the find() …

  4. How can I index a MATLAB array returned by a function without …

    In general, you just have to change the indexing step to a function call so you don't have two sets of parentheses immediately following one another. Another way to do this would be to define …

  5. Access Elements of Array in MATLAB - Stack Overflow

    Jan 24, 2013 · Matlab lets you access a matrix with a linear index that scans through all the columns of the matrix. So in your case (with a 3x3) a(2,1)=a(2) and a(1,2)=a(4). The answer …

  6. Mastering Matlab Array Indexing: A Quick Guide

    MATLAB array indexing refers to the method of accessing and manipulating elements within an array using their position or index. Indexing allows users to retrieve specific items, modify …

  7. How to Find Index of Value in Array in Matlab | Delft Stack

    Feb 12, 2024 · MATLAB provides several effective methods for finding the index of a value in an array, each catering to different needs and scenarios. The find() function stands out as a …

  8. Array Indexing - 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]

  9. Access Data in Cell Array - MathWorks

    If a cell contains an array, you can access specific elements within that array using two levels of indices. First, use curly braces to access the contents of the cell. Then, use the standard …

  10. Array Indexing - MATLAB & Simulink - MatlabSolutions

    Jan 1, 2018 · In general, you can use indexing to access elements of any array in MATLAB regardless of its data type or dimensions. For example, directly access a column of a datetime …

Refresh