The easiest way is to store the structs arrays in a cell array and then later reuse them. For example
L1=6.243;
L2=2.0;
l1=2.1215;
theta=[1:1:90]
e_array = {};
for i=1:90
syms F5 F6x F6y
eqn9=([c.F4x])+([d.F3x])==(F5.*cosd(theta(i)))+F6x+([d.Fp].*cosd(beta))
eqn10=([c.F4y])+([d.F3y])+(F5.*sind(theta(i)))+F6y==([d.Fp].*cosd(beta))
eqn11=(F5.*cosd(theta(i))*l1)+(F5.*sind(theta(i))*l1)+([d.F3y]*l1)+([d.Fp].*cosd(beta)*L1)==([d.F3x]*(L1-l1))+([c.F4x]*L1)
for K = 1 : length(eqn9)
e(K) = (vpasolve([eqn9(K),eqn10(K),eqn11(K)], [F5,F6x,F6y]))
end
e_array{i} = e;
plot(theta,[e.F5],'r')
hold on
end
Then use them as follow
gamma=theta-hoeksup
syms F7x F7y
for i=1:numel(e_array)
eqn12=([e_array{i}.F5].*cosd(theta))+(Fp2.*cosd(gamma))==F7x
eqn13=([e_array{i}.F5].*sind(theta))+(Fp2.*sind(gamma))==F7y
end
Best Answer