%########################## %simple 2D plot %########################## traj = importdata('\%EnterPath\Trajektorie_Al.dat') plot(traj(:,1),traj(:,2)) %########################### % 3D overlay %########################### %traj = importdata('C:\Users\vuk93\Documents\ModuSim2013\Uebung7_Matlab\Trajektorie_Al_all.dat') %plot3(traj(:,2),traj(:,3),traj(:,5)) %hold on %x = -1.5:0.2:3.5; %y=-1.5:0.2:20; %POT0=1. %A=3. %[X,Y]=meshgrid(x,y); %ARGX = 2.*pi*X./A %ARGY = 2.*pi*Y./A %Z = .25*POT0*(2.+cos(ARGX)+cos(ARGY)); %mesh(X,Y,Z,Z) % zeichnet die Punkte (x,y,z) und verbindet sie %surf(X,Y,Z,Z) %xlabel('x') %ylabel('y') %zlabel('z') %hold off