MATLAB: Save as text file, and loads the matrices from the text file to the workspace. The workspace containing the matrices is then saved to the mat-file.

loads the matrices from the text file saved to the mat-file.

how i write my script that prints matrices into a text file.The script then clears the workspace and loads the matrices from the text file to the workspace. The workspace containing the matrices is then saved to the mat-file?