Created
June 22, 2011 16:09
-
-
Save sburns/1040448 to your computer and use it in GitHub Desktop.
matlab to numpy question
This file contains hidden or 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
# given a vector | |
a = [ 16738, 24500, 45000, 67000]; | |
#how can I do this in numpy efficiently? | |
b = [] | |
for ia = a | |
b = [b ia-60:ia+300]; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment