Figured out how to replace space and "-", by using
name = regexprep(test_data.name(i),' ','_');
But still don't know how to "create" the variable named as:
Object_2_1 = [3 4 5 etc.];
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!