How to combine two matrix based on position and find the corresponding element?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ASHA PON
am 26 Apr. 2022
Kommentiert: ASHA PON
am 28 Apr. 2022
I am having two matrix. one matrix element represent the position whereas other matrix contine the elements. Now i have to merge these two matrix based on position and to find corresponding element.
for example:
a=[ 5 6 3 7]
b=[011 101 010 001 100 110 111]
expected output:
c=[100 110 010 111]
i need to apply this problem to a larger n*m matrix.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!