Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

extract data from a txt

1 vue (au cours des 30 derniers jours)
jose bernardo
jose bernardo le 29 Avr 2013
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi, I have a file.txt with this structure:
Line {
Name "net1"
SrcBlock "dd"
SrcPort 1
DstBlock "nor3"
DstPort 1
}
Line {
Name "net3"
SrcBlock "puerta"
SrcPort 1
DstBlock "nor3"
DstPort 3
}
Line {
Name "net2"
SrcBlock "dd1"
SrcPort 1
DstBlock "nor3"
DstPort 2
And I want to obtain a matrix with this order:
net1 dd 1 nor3 1
net3 puerta 1 nor3 3
net2 dd1 1 nor3 2
the file could have more "Line {" structures. This example only have three.
Thanks for all!

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by