function [H_last, B_last, idxLast] = func_get_last_cycle(H, B, nSteps)
% just the last cycle of the B(H) calculation is needed
    Lcycle = 4 * nSteps;
    N      = numel(H);
    idx0   = N - Lcycle + 1;
    idxLast = idx0:N;
    H_last  = H(idxLast);
    B_last  = B(idxLast);
end