MATLAB Answers

0

How can I keep two indices preserved in MATLAB ?

Asked by Gayan Lankeshwara on 13 Nov 2019
Latest activity Commented on by Gayan Lankeshwara on 13 Nov 2019
Hi All,
This is a snapshot of the table that I am working on.
I need the indices of the [row] and [column] BOTH columns of the table to be preserved when I move on to the next iteration.
Simply, for B = 0.0891 I should be able to tell that row = 1 and column = 2, once after I move on to the next iteration, but the position of that element in the next iteration migh not be at the first place as in this case.
I hope you got my question.
Thank you.
This is the table that I am discussing about.....
Probelm_mATLAB_questions.JPG

  7 Comments

KSSV
on 13 Nov 2019
To preserve it don't disturb the value ..simple..
ismember the moved data against the original data and take the second output to get the linear index in the original data.
Okay I will try.
Anyway thanks for the support.

Sign in to comment.

Products


Release

R2019a

0 Answers