10. Octave

Comandos
  • x = 1:30
  • y = x.^2
  • media = mean(y)
  • maximo = max(y)
  • plot(x,y)
  • title("Pruebas")
  • xlabel("X")
  • ylabel("Y")
  • print -dpng "test.png"
  • h1 = figure()
    plot(x, y, "o", "color", "red", "markersize", 10)
  • title("test")
  • legend("Datos")
  • h2 = figure()
  • bar(x, y)
  • title("test2")
  • legend("Datos2")
  • print (h1, "test2.png", "-dpng")