Feeds
提问
how to do random walk?
1. Write a function xrand(x) which takes as input a number from 0 to 100 and as output returns 1 with likelihood x% and returns...
8 years 前 | 1 个回答 | 1
1
个回答提问
replace element in the vector without using loops or if statement
using a logical vector and a single line of code (3 total lines if you count the “function” line and the “end” line). Your func...
8 years 前 | 1 个回答 | 0
