Skip to content

Instantly share code, notes, and snippets.

@mattgaidica
Last active March 21, 2019 00:47
Show Gist options
  • Save mattgaidica/bb95bf35b1a3e4248a5de332a8807b8f to your computer and use it in GitHub Desktop.
Save mattgaidica/bb95bf35b1a3e4248a5de332a8807b8f to your computer and use it in GitHub Desktop.
function d1new = equalVectors(d1,d2)
% d1new is the 'dimension' of d2
nd2 = numel(d2);
if isscalar(d2)
nd2 = d2;
end
d1new = interp1(1:numel(d1),d1,linspace(1,numel(d1),nd2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment