converting data in Excel CSV to specific format in text
Show older comments
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 Comments
Walter Roberson
on 13 May 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
on 14 May 2015
Accepted Answer
More Answers (0)
Categories
Find more on Text Data Preparation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!