x=[-8:0.1:8]; x0=[-1,1,3;-2,0,2]; sigma=[0.5,1,2;1,0.3,1]; figure for row = [1:2] g(row,:) = gauss1d(x,x0(row,:),sigma(row,:)); subplot(2,1,row); plot(x,g(row,:)); title(['x0 = [',num2str(x0(row,:)),'] und sigma = [',num2str(sigma(row,:)),']']); xlabel('x'); ylabel('g(x)'); end