From a matrix creating a vector
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Emilia
am 24 Jul. 2022
Kommentiert: Star Strider
am 24 Jul. 2022
Hello,
I have matrix
A=[1 7 3 9 4; 8 6 8 9 1; 7 7 7 8]
I need to find the existing numbers from the matrix and create a vector, for example like this Vector1=[1 3 4 6 7 8 9]
and also count the numbers several times, for example like this Vector2=[2 1 1 1 4 3 2]
Thanks for the helpers :)
2 Kommentare
Akzeptierte Antwort
Star Strider
am 24 Jul. 2022
This appears to be homework, so I leave the coding to you.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!