

how do I adjust the x y intercept?
Hi
Given this curve
https://i.imgur.com/b8ig3Hv.png
How do I make it so that it looks like
https://i.imgur.com/wnLy0w6.png
i.e. so that x and y intersect at x=y=0
also if the only x values that I want to see, are x=0, x=90, x=180
Thanks
Scilab


Hello,
The first plot that you mentioned is already at x=y=0. Use xgrid() command to plot grids for better visualization. Also, note that the sin() accepts arguments in radians. If you want to give inputs in degrees say 0, 90, 180, use sind() function. See the code below.
clf() t=0:1:360; y=sind(t); plot(t,y)
Rupak
Login to add comment