Hi! I'm trying to make a script, which plots this equations.
my code so far:
clc;clear;t=0 % Time
tend=0.40 % end time
dt=0.01; % Time step
f=200; % Frequency in Hz
vs=100; %Velocity in x in mm/s
A1=1.2; %Amplitude in y-direction
A2=0.6; %Amplitude in x-dirction
for t=0:dt:tend; X=vs*t+A1*sin(2*pi*f*t); Y=A2*sin(2*pi*f*t+pi/2); plot (X, Y,'-b')end
How can I define my time steps so that I get the same plot like like the one from the link? There is sth wrong with my time step.
Thnaks in advance
Best Answer