A text file could be loaded as below:
How can I use a variable in address of loading? For example (n is a variable):
But the above code doesn't work! How do I do?
Best How To :
The documentation: http://www.mathworks.com/help/matlab/ref/load.html, shows that you can supply a string to
load by doing:
where filename is a string. In your case, you can do: