Created
February 11, 2010 19:42
-
-
Save jfhbrook/301867 to your computer and use it in GitHub Desktop.
An alternate, shorter/vectorized version of subset.m from before. Product of bouncing ideas off Dustin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function out=subset(in,n) | |
%subset(row_vector,spacing) | |
%subsets a row vector | |
%by Josh Holbrook and Dustin Ray | |
out=in(floor(linspace(1,size(in,2),n))); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment