Sure, you can store multiple variables in a single .mat file; just read the .txt file into a cellstr array variable and write both variables to a .mat file. See the
doc save % for examples, details on how, precisely.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!