Borrar filtros
Borrar filtros

How can I retain original subscript indices for a matrix subset?

2 visualizaciones (últimos 30 días)
Stephanie Diaz
Stephanie Diaz el 8 de Jun. de 2017
Comentada: KSSV el 9 de Jun. de 2017
Hi,
I have a matrix subset (from the original matrix, C) that I have created with the following code:
C_sub = C(((minx):(maxx)),((miny):(maxy)));
C_sub now has its own subscript indices, likely due to the fact that matlab now sees it as its own matrix. I need C_sub to somehow retain the subscript indices (or linear indices) from the original matrix (matrix C),or some way to call on the original indices. Is there a way to do this?

Respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by