I have a matlab workspace that only contains structures. All structures have the same fields. Imagine I have three structures in the workspace with names:
B00002N6AA B00002N6VF B00004OKOP
I can combine them into a single structure by doing:
combined = [B00002N6AA B00002N6VF B00004OKOP];
Now I have thousands of structures. I know I can get all their names by doing:
SNames = who;
Is there anyway of combining them all into a single structure without having to manually copy and paste their names?