

% Plotting of two sine plots
% The first in green with a stepsize of 0.1 s and the second in red with 
% a stepsize of 0.001 s.
% The Octave visualization of the second plot is buggy. 
% Hugh parts of the curve are not visible!
% The effect depend on the stepsize and the view angle

figure('Position',[250,500,600,400]); 
hold on

%Plot with poor resolution.  
timeValues1 = 1:0.1:10;
phi1 = sin(timeValues1 * 2 * pi);
plot3(timeValues1, 1*ones(size(phi1)), phi1,'g');grid on;

%Plot with high resolution. Hugh parts of the curve are not visible!
timeValues2 = 1:0.001:10;
phi2 = sin(timeValues2 * 2 * pi);
plot3(timeValues2, 2*ones(size(phi2)), phi2,'r');grid on;

xlabel('time [s]');
ylabel('y');
view(-20,40)


