Community Profile

Contact

Top 1% contributor

Mimic the higher-order function |foldl| ( <http://en.wikipedia.org/wiki/Fold_%28higher-order_function%29 Wikipedia:Fold (higher-...

Solve this!

3

3 years ago

Given a 3D matrix, A, find the largest value. E.g. >> A = 1:9; >> A=reshape(A,[3 1 3]); >> islargest(A) ans = 9

Split a string into two strings, first string has all alphabetic letters, next string has all the rest, keep the order please, o...

If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

Create a function that applies an operation (such as @sum, @mean, @std, @norm etc) to a moving window of the data. First exam...

If y = 4*x*x/pi/pi then what is the ultimate limiting result of (1+y/1/1)(1+y/3/3)(1+y/5/5)(1+y/7/7)... ... within 1000*eps?

Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, return a matrix with all elements above a...

You have two vectors , determine the angle between these two vectors For example: u = [0 0 1]; v = [1 0 0]; The a...

given a person_of_interest, what is his_name?

Radioactive Einsteinium-253 has a half-life of 1,768,608 seconds. Given 1000mg of Einsteinium-253 at t=0 days, how much is lef...

* The prospective husband must pass a background check, * and *functions* faithfully, as suggested by <http://www.mathworks.com...

Given that 0 < x and x < 2*pi where x is in radians, write a function [c,s] = infinite_series(x); that returns with the...

Covering some basic topics I haven't seen elsewhere on Cody. Remove the singleton dimensions from the input variable (e.g. if...

Convert a given string to international <http://en.wikipedia.org/wiki/Morse_code Morse Code> * Strings will only have [A-z], ...

Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...

I have a vector, say: x= [ 1 5 6 2 6 1 3 5 1] Now I would like to get the index of the minimum values in this vector. When...

Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of all MATLAB keywords

Given an N-dimensional array, _A_, an index, _I_, and a dimension, _d_, return the _I_ th elements of _A_ in the _d_ dimension. ...

Given the handle to a binary function that takes two ordinary numbers, test if the function is commutative.

Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

The given vector has diameter of the cup in mm sampled at micrometer increments in depth from top to bottom, need output in cc a...

You are given a logical matrix *BW* _of any dimension_, and a dimension *dim*. You need to find the locations of the last non-ze...

The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

Given the height, h1, of a power pole, shorter than a tree, a given distance, x2 away, please find h2, height of the tree. Pleas...

Given a string that is the name of a MATLAB toolbox, return true if it is available on the Cody solvers evaluation system, false...

Return a number equal to the number of toolboxes available to the Cody solvers.

Load more