MATLAB: How to make a structure from structures

struct

I have variables in workspace like this: from P1 to P28 (structure array). I want to save them in P to call them like this (these are points for my robot):
MOVE1 = rmove( Kawasaki, P(1:28) );

Best Answer

How i repair it:
Make P:
P = [ rpoint(0,0,0,0,0,0,'signal', [],'pulse', [], 'wait', 0) ];
and then I make
P(1) = rpoint(265.828,648.913,-165.654,0,0,0,'signal', [],'pulse', [], 'wait', 1);
P(2)
.
.
.
.etc
Thank you for trying to help me.