How to add a column in MATLAB after sorting an array

조회 수: 1 (최근 30일)
Sukalyan Deb
Sukalyan Deb 2020년 11월 9일
답변: Athul Prakash 2020년 11월 12일
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