%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Name: plotSweepMom.m
% Author: J. Kristoffer Hultgren
%
% Description:
%
% Plots a momentary sweep at a certain point as a I/V plot
%
% Input:  currout  - Current vector (A)
%         Vb       - Bias voltage vector
%
% Output: -
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function plotSweepMom(currout,Vb)

%Extract the first row of the current vector
for i = 1:max(size(Vb))
    ip(i) = currout(1,i);   %Can be modified to any point
end

figure('name','Sweep')
plot(Vb,ip.*1e9,'.')
title('Sweep at 0 rad')
xlabel('V_{b} (V)')
ylabel('I_{p} (nA)')