This short video tutorial explains how to easily import text file data to MATLAB workspace using MATLAB built-in feature , i.e., the import tool.
This process is simpler and requires no coding. The data can be later saved with different variable names for future use.