Importing and assigning values to CSV files.
Show older comments
Hello everyone,
I have three MS Excel files, file A has 20.000x1 rows of 5 digit numbers, file B contains 20.000x1 rows of numbers and letters, all with length 6, i.e E549T1, E96L1M etc. Lastly I have a file C, which contains combinations of elements from file B in each row and column. File C has 54.000 rows and 13 columns where each cell is either a value from file B or empty.
C : E549T1 E96L1M E549T1 E96L1M E549T1 E96L1M ...
I want to substitute each element in file B with the corresponding row element in file A. B(i) = A(i). Such that I can have a matrix C with only 5 digit numbers.
The problem is that C and B are imported as cell values and I can't simply assign ( = ) the file A values that way. I tried to import the values as string values and treat it like a matrix, but that didn't work either...
Can anyone give me some pointers?
Thanks in advance, Best regards, K
Accepted Answer
More Answers (0)
Categories
Find more on String Parsing 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!