===== Octave Plots===== ==a==Grundlagen==a== Plot löschen %%clearplot%% Clear current figure %%clf%% Beschriftung %%(matlab) plot(x, y,";Beschriftung;"); %% ==a==Fromatierung==a== %%(matlab) plot(x, y,"2;Beschriftung;3"); %% %%(matlab) plot(x, y,"1"); %% %% Number Gnuplot colors (lines)points style 1 red * 2 green + 3 blue o 4 magenta x 5 cyan house 6 brown there exists %% ==a==Hinweise==a== Wenn vielen Figures gezeichnet werden, verhält sich OCATVE anders als MATLAB %%(matlab) grid on % Bei octave besser explizit grid on anstelle von grid anngeben %% ==a==Output plot to file==a== %%(matlab) > gset terminal png > gset output "1.png" > redraw %% png, emf, postscript ==a==Beispiele==a== Ordentlicher Plot %%(matlab) figure(1) x=linspace(-1.5,1.5,50); y1=exp(x); y2=exp(-x); y3=1-exp(-x); y=[y1;y2;y3]; hold off plot(x,y); legend('y_1','y2','y3'); xlabel('x'); ylabel('y'); title('Exponentialfunktion') grid on %% ~-OcatveSkriptFirFilterTypen ~-OcatveSkriptLC ---- Siehe auch {{backlinks}}