Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
ploygon
%To view plots after 'plot' (and other plot-producing commands) this command must follow: 'print -dpng some_unique_plot_name.png;' %It exports current plot to png image which then is sent to your browser %GNU Octave 4.2.2 n = 8; k = 0:n-1; f1 = @ (x) cos(3*pi/2+pi/n+2*pi*x/n); f2 = @ (x) sin(3*pi/2+pi/n+2*pi*x/n); t = 0:0.01:1; hold on for i = 1:n x = (f1(k(i)+1)-f1(k(i)))*t + f1(k(i)); y = (f2(k(i)+1)-f2(k(i)))*t + f2(k(i)); plot(x,y,"Linewidth",3,"Color",'b'); end print -dpng saif.png;
run
|
edit
|
history
|
help
0
Test.M3
Delsq
teste1
Krylov.m
felix 1
Krylov.m
трапеции 3,2
bd
ea
Example Plot for MTE111 Lab Reports