N = 10000;t = linspace(-3*pi, 3*pi, N + 1)'; t(end) = [];x = -t;figure; hold on; grid on;plot(t, x, 'b', 'LineWidth', 1)legend('x(t)');xlabel('t');ylabel('x(t)');
this is my code and my input funciton is x=-t
i want the plot graph to repeat it self this way in intervals of 2*pi:
now,obviously the plot is just the function -t in the interval {-3pi,3pi} without repitations.
I cant find the right syntax to do it.
if someone has an idea , i could use the help. thanks
Best Answer