Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = dlmread('lb02ex.csv',';',"A11000:B21100");
- x1=1500;
- x2=1540
- subplot(2,1,1);
- plot(f(:,1),f(:,2));
- ylabel("f(x)");
- xlabel("x");
- title("Main Graph");
- legend("Info from CSV","2",1);
- #set(gca,'YTick',0:5:100);
- grid
- subplot(2,1,2)
- plot(f(:,1),f(:,2));
- xlim([x1, x2]);
- ylabel("f(x)");
- xlabel("x from 1500 to 1540");
- title("Graph With lims");
- legend("Info from CSV","2",1);
- set(gca,'XTick',x1:5:x2);
- #set(gca,'YTick',0:5:100);
- grid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement