converting data in Excel CSV to specific format in text
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 13 de Mayo de 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
el 14 de Mayo de 2015
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Text Data Preparation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!