How to add a column in MATLAB after sorting an array

2 次查看(过去 30 天)
How do I make the Identity column given all the other information and sorting in the figure.

回答(1 个)

Athul Prakash
Athul Prakash 2020-11-12
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.

类别

Help CenterFile Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by