function plotcurrents(time, currents) figure(); hold on; for k = 1:size(currents, 2) plot(time, currents(:, k)) end hold off; xlabel('Time [ms]') ylabel('Current') end