How do I extract some rows in a marix that satisfy a given condition?
Ältere Kommentare anzeigen
Hi everyone here my data:
- a file text with the name of nodes (of a network) for example ('JUNCTION-0;JUNCTION1...') ordered by columns
- a file.mat that contains the demands of nodes
First of all I want to group the two files in a matrix/data table and then extract only the rows for which the demand is >0. The final matrix should contain only the names of junctions with the corresponding demand that satisfy the given condition. Any suggestions? I attach the two files.
Thank you!
Stefania
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!