sub2ind

sub2ind(dims, i, j, k...) -> index

The inverse of ind2sub, returns the linear index corresponding to the provided subscripts

Examples

See Also

User Contributed Notes

Add a Note

The format of note supported is markdown, use triple backtick to start and end a code block.

*Required Field
Details

Checking you are not a robot: