How to add a column in MATLAB after sorting an array

2 visualizaciones (últimos 30 días)
Sukalyan Deb
Sukalyan Deb el 9 de Nov. de 2020
Respondida: Athul Prakash el 12 de Nov. de 2020
How do I make the Identity column given all the other information and sorting in the figure.

Respuestas (1)

Athul Prakash
Athul Prakash el 12 de Nov. de 2020
Hi Sukalyan,
Looking at your figure, I assume that the data is a table existing in the workspace and that you've already sorted the table. You may extract the final column from the table using dot notaion -
I = myTable.Identity;
Hope it helps.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by