MATLAB Answers

2D plote when x axis and y axis intersect at origin

1 view (last 30 days)
feeroz babu
feeroz babu on 15 Dec 2020
Commented: feeroz babu on 15 Dec 2020
% I want to plote this graph when only x axis and y axis cross at origin. I don't need boox type plote.
x = [-1/pi:0.0001:1/pi];
y = (x/2).*(sin(1./x));
plot(x,y)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!