How to insert the missing number into the cell array?
Show older comments
Suppose that I have this
I=[3 5 6 8 10 11]
A={[3];[6;8];[];[11]}
How to find the missing number of I in A and insert that number into any position of A? for intance like:
A={[3];[6;8];[5];[10;11]}
4 Comments
KSSV
on 14 May 2019
YOu have I in hand always?
Hang Vu
on 14 May 2019
Akira Agata
on 14 May 2019
Edited: Akira Agata
on 14 May 2019
One quick question:
How did you define the position of '10' in your cell array A?
Hang Vu
on 14 May 2019
Accepted Answer
More Answers (0)
Categories
Find more on Creating and Concatenating 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!