How to add a column in MATLAB after sorting an array
1 view (last 30 days)
Show older comments
Sukalyan Deb on 9 Nov 2020
Answered: Athul Prakash on 12 Nov 2020
How do I make the Identity column given all the other information and sorting in the figure.
Athul Prakash on 12 Nov 2020
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.
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!