ویرایشگر کد
x
1
%To view plots after 'plot' (and other plot-producing commands) this command must follow: 'print -dpng some_unique_plot_name.png;'
2
%It exports current plot to png image which then is sent to your browser
3
%GNU Octave 4.0.0
4
5
x=1:0.1:10;
6
plot(x, sin(x));
7
print -dpng some_name.png;
نتیجه اجرای کد