MATLAB: How to generate the data for an eight ‘8’ draw

dataeightgenerateplot

Hello, I would like to know how to generate the data for the shape of an eight. I've been trying with some hysteresis functions but nothing gets me close really.
Thank you very much

Best Answer

You can try with this:
t=0:.1:2*pi;
x = -sin(t);
y = sin(t);
plot(t,x,'*',t,y,'+')
Related Question