Top 10% contributor
Hi, I'm having some trouble with ga. without nonlinear constraints, I seem to have direct control of the stopping criteria; I c...
Asked 3 years ago
Returns indices of n consecutive numbers (you specify the number you want)
6 years ago
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
3 years ago
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
Calculate the nth Fibonacci number.
Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ...
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
Given the input n, return true if n is odd or false if n is even.
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Find the sum of all the numbers of the input vector x.
Input x = [1 2 3 5]
Output y is 11
Input x ...
Homer Simpson Quotes
7 years ago
Join the conversation