MATLAB: Re-sizing structure arrays

horrible ideareshapestructures

How can I make a structure array of unknown size into several 1×1 structures? For instance, changing a 5×1 structure array into 5 1×1 structures.
EDIT: Telling me it's a bad idea does not answer my question.
EDIT2: I apologize for my earlier comment about helpfulness, I was just frustrated. What I'm trying to do is take a structure array (which obviously only states its dimensions and specifies the fieldnames when displayed) and display it as a character array containing the entirety of the data. Now I can convert a 1×1 to a character array just fine because I found a .p file for that, but I'm having problems breaking my structures into pieces that script can handle.

Best Answer

Eric, you can use fprintf() to display any fields you want of any or all structures in a structure array. For example:
for k = 1 : length(s)
fprintf('s(%d).str1 = %s\n', k, s(k).str1); % Display a string field
fprintf('s(%d).int1 = %d\n', k, s(k).int1); % Display a integer numerical field
fprintf('s(%d).dbl = %.2f\n', k, s(k).dbl); % Display a double numerical field
end
This will print those 3 fields to the command window for all structures in the array of structures.