Danach möchte ich die Matrix B genau so sortieren wie ich die Matrix A sortiert habe, allerdings nicht in Abhängigkeit der Grösse der Werte sondern nach der neu-Indexierung der Sortierung von Matrix A...
die documentation von matlab ist sehr gut und ich kann jedem nur empfehlen sie zu lesen.
Zitat:
[B,I] = sort(___) additionally returns a collection of index vectors for any of the previous syntaxes. I is the same size as A and describes the arrangement of the elements of A into B along the sorted dimension. For example, if A is a numeric vector, B = A(I).
die documentation von matlab ist sehr gut und ich kann jedem nur empfehlen sie zu lesen.
Zitat:
[B,I] = sort(___) additionally returns a collection of index vectors for any of the previous syntaxes. I is the same size as A and describes the arrangement of the elements of A into B along the sorted dimension. For example, if A is a numeric vector, B = A(I).
das sollte helfen
Grüße winkow
Das hilft. Super, danke Winkow! Schönes Wochenende.
Einstellungen und Berechtigungen
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.