home

The following code is provided as is with no warranties express or implied or statutory or whatever, standard disclaimers apply, use at your own risk, yatta, yatta, yatta. 

This example plots a unit circle in Scilab. The first line creates a vector of degree values from 0 to 360 stepping by 10. The second line creates a radians vector from the degrees vector. The third line creates a matrix of coordinates on the unit circle by applying sin and cos to the radians vector. The last line plots the unit circle given the x coordinates, y coordinates, plot rectangle with axes crossing at the center (axesflag=5).

-->degrees = [0:10:360];
-->radians = degrees * %pi / 180;
-->circle = [cos(radians); sin(radians)];
-->plot2d(circle(1,:), circle(2,:), rect=[-3 -3 3 3], axesflag=5)