converting data in Excel CSV to specific format in text
Afficher commentaires plus anciens
Hello all, I am trying to create a matlab script. I am successful in CSV to text conversion and adding headers. But getting stuck to print the text file derived from Excel-CSV in below mentioned format
Objective of the script:
- Read data from Excel-CSV (almost 600 rows and 2 columns)
- Store in text file with specific format.
Specific format: (restriction/reservation of 8 Characters for each cell of CSV data)
<--+---><--A1--><--B1--><--A2--><--B2--><--A3--><--B3--><--A4--><--B4-->
Next line
<--+---><--A5--><--B5--><--A6--><--B6--><--A7--><--B7--><--A8--><--B8-->
Next line
<--+---><--A9--><--B9--><--A10-><--B10-><--A11-><--B11-><--A12-><--B12->
-
-
-
to be continued till end of file.
request your help
2 commentaires
Walter Roberson
le 13 Mai 2015
Are the '<' and '-' and '>' literal? Will the entries always be exactly 2 or 3 characters? Would '<----A1>' be an acceptable alternative form for '<--A1-->' ? Would '<-A10-->' be an acceptable alternative form for '<--A10->' ?
GS
le 14 Mai 2015
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Text Data Preparation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!