About 69 results
Open links in new tab
  1. sub2ind - Convert subscripts to linear indices - MATLAB

    This MATLAB function returns the linear indices ind corresponding to the row and column subscripts in row and col for a matrix of size sz.

  2. ind2sub - Convert linear indices to subscripts - MATLAB

    This MATLAB function returns the arrays row and col containing the equivalent row and column subscripts corresponding to the linear indices ind for a matrix of size sz.

  3. what is the function of (sub2ind) - MATLAB Answers - MATLAB Central

    Feb 3, 2018 · what is the function of (sub2ind). Learn more about matlab, eval, antipattern, buggy, bad code, pointless, cargo cult programming, complicated

  4. Matlab Code: Eval and Sub2ind - MATLAB Answers - MATLAB Central

    Apr 10, 2023 · Matlab Code: Eval and Sub2ind . Learn more about eval, sub2ind, evil MATLAB

  5. sub2ind -> out of range subscript - MATLAB Answers - MATLAB Central

    Mar 24, 2011 · sub2ind -> out of range subscript. Learn more about fingerprint, sub2ind

  6. Array Indexing - MATLAB & Simulink - MathWorks

    Sep 10, 2011 · The sub2ind and ind2sub functions help to convert between original array indices and their linear version. For example, compute the linear index of the 3,2 element of A.

  7. sub2ind () errors out with NaN inputs - handled differently since ...

    Mar 4, 2025 · The sub2ind (R2024a) function now supports scalar expansion and accepts a mix of scalars and vectors for subscript inputs. For example, sub2ind(sz, [1 2 3],2) is now the same as …

  8. How does sub2ind work with non-integer values? - MATLAB Answers ...

    Jul 21, 2025 · I was working with some displacement matrices and noticed sub2ind working with non-integer inputs. It not only works but also outputs non-integer values. I looked at the documentation …

  9. sub2ind Get values of 3D matrix using an index array? - MATLAB …

    Sep 10, 2019 · MATLAB Answers Find indices of distinct portions of a logical matrix. 1 Answer sub2ind problem 1 Answer Finding an index from a 3D matrix 1 Answer

  10. Augmented version of sub2ind - File Exchange - MATLAB Central

    Apr 30, 2012 · IND = SUB2IND (SIZ,M), where M is a R x N matrix, returns the N linear indices equivalent to the N subscripts of rank R in the columns of M for an array of size SIZ. The only thing …