function [data] = load_numbered_packet(num, dir)

% packet(NUM) loads a saved packet with the specified number from
%   /var/tmp/packetNUM_* and returns the complex data.
%
% packet(NUM, DIR) uses /var/tmp/DIR/packetNUM_* instead.

if nargin<2 | isempty(dir),  dir = [];  end

data = datafile_rc(sprintf('packet%d', num), dir);
