I'm trying to plot a couple of graphs, but each refresh and rerun I do, the graph doesn't seem to be updating. Sometimes it does update but the old plots remain and the new plots get attached to it. Is it because of hold on;? Does it last beyond the script?
This is my code:
LabResponse = csvread('scope_0.csv', 2, 0);LabResponse(:,1) = LabResponse(:,1) + 0.0015;t = linspace(0, 1, 10000);y = 1-exp(- t ./ (1000 * 10^(-6)));plot(t,y); hold on;plot(LabResponse(:,1), LabResponse(:,3));xlabel('t');ylabel('y');axis([0 0.01 0 1])
Best Answer