Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.44 KB | None | 0 0
  1. f = dlmread('lb02ex.csv',';',"A11000:B21100");
  2. x1=1500;
  3. x2=1540
  4. subplot(2,1,1);
  5. plot(f(:,1),f(:,2));
  6. ylabel("f(x)");
  7. xlabel("x");
  8. title("Main Graph");
  9. legend("Info from CSV","2",1);
  10. #set(gca,'YTick',0:5:100);
  11. grid
  12. subplot(2,1,2)
  13.  
  14. plot(f(:,1),f(:,2));
  15. xlim([x1, x2]);
  16. ylabel("f(x)");
  17. xlabel("x from 1500 to 1540");
  18. title("Graph With lims");
  19. legend("Info from CSV","2",1);
  20. set(gca,'XTick',x1:5:x2);
  21. #set(gca,'YTick',0:5:100);
  22. grid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement