To deal with duplicate variable names when using horzcat
function in MATLAB, you can use the table
data structure instead of arrays or matrices.
Here's an example:
main.m319 chars10 lines
The resulting table will have unique variable names with automatic renaming, such as 'A1' and 'A2'.
gistlibby LogSnag