Another colon problem
This is simple problem based on problems 555, 801, 1118, etc.
Create an index vector from two input vectors.
Example:
...
5年弱 前
解決済み
Determine if input is a Narcissistic number
<http://en.wikipedia.org/wiki/Narcissistic_number Narcissistic number> is a number that is the sum of its own digits each raised...
5年弱 前
解決済み
Create cell array of strings
Convert the input to a cell array, but only if necessary.
If the input is a string, return a 1-by-1 cell array containing the...
5年弱 前
解決済み
Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers.
Given a positive in...
Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN;
output -> matrix(p*m), the same matrix where we deleted the enti...
5年弱 前
解決済み
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年弱 前
解決済み
Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody.
Given 2 input variables, output true if they are equal, false ot...
5年弱 前
解決済み
Replace May with April
For instance, if the input is
input_str = 'The flowers may bloom in April';
then the output is
output_str = 'The flo...
5年弱 前
解決済み
row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.
5年弱 前
解決済み
Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...