Vector of numbers divisible by 3
* Input(n) - any integer
* Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0
Examples:
* n=6...
0<=x<=pi?
Check whether the given angle is between zero and pi.
Return logical true or false.
5 years 前
已解决
vectorization in N
For a given integer n (n>1), compute the sum f (i) (1 <= i <= n) where f (i) = 1 if n is odd and 2 otherwise.
5 years 前
已解决
Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector
for example
x ...
5 years 前
已解决
Area of a circle
Given the radius x, y would be the area of a circle.
Pi = 3.1416
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...