Solved


A sequence of Ones
You are given number(s) with all digits - 1. Your answer will depend on the count of 1 in the given number, for example - x1...

18 days ago

Solved


Check if a year is a leap year or not
Return 1 if a given year is a leap year or 0 if it is not

18 days ago

Solved


Define the higher order function - foldl
Given a binary function f, a starting value a, and a list (row vector) xs of values, the higher order function foldl folds the f...

18 days ago

Solved


Sherlock Holmes: The Spy Problem
A guest at a party is a spy if this person is not known by any other guest, but knows all of them. There is at most one spy at a...

18 days ago

Solved


Number Puzzles - 018

18 days ago

Solved


Orientation of a 3D coordinate frame
The orientation of a body-fixed frame {B} with respect to the world frame {W} is described by an SO(3) rotation matrix. Compute...

18 days ago

Solved


Where is 1?
There is a 3d matrix [A] that consist of many zeros and only one. A=zeros(100,100,100); i=randi(100); j=randi(100); k=randi(...

18 days ago

Solved


Number Puzzles - 015

18 days ago

Solved


Number Puzzle - 022

18 days ago

Solved


Number Puzzle - 118

18 days ago

Solved


Number Puzzle - 119

18 days ago

Solved


Number Puzzles - 016

18 days ago

Solved


Number Puzzles - 020

18 days ago

Solved


String Logic 4
Example: 'CAT' --> 'IGZ' 'DOG' --> 'JUM' 'MATLAB' --> 'SGZRGH' 'ROSY' --> 'XUYE' 'TRUST' --> 'ZXAYZ' 'MOSTLY' --> 'SUYZ...

18 days ago

Solved


Number Puzzle - 098

18 days ago

Solved


Sales Tax

18 days ago

Solved


Number Puzzles - 021

18 days ago

Solved


Number Puzzle - 075

18 days ago

Solved


Number Puzzle - 076

18 days ago

Solved


Number Puzzle - 079

18 days ago

Solved


Number Puzzle - 077

18 days ago

Solved


Number Puzzle - 078

18 days ago

Solved


Number Puzzle - 080

18 days ago

Solved


Change on Spiral Matrix
n>=3, generate a matrix of nth such that n^2 is the max number, and max number must be in [1,1] or [end, end]. One example will ...

18 days ago

Solved


Convert a substructure reference string into a valid definition structure for subsref and subsasgn
You have a reference to an element in a data structure, which you want to pass to a function. Not the value itself, but the refe...

18 days ago

Solved


Prouhet–Tarry–Escott (basic)
Inspired by <http://www.mathworks.com/matlabcentral/cody/problems/660-find-a-subset-that-divides-the-vector-into-equal-halves pr...

18 days ago

Solved


Slicing the cube
A bored matlab enthusiast has a cube with volume n^3. He decides to paint the entire surface of the cube red. Then, with slices...

18 days ago

Solved


Pairwise Euclidean Distance
Given two matrices A,B of dimensions NxK and NxL respectively, calculate the pairwise euclidean distance of all vectors (columns...

18 days ago

Solved


Calculate color coordinates in CIE 1931 color space
For given wavelength lambda, calculate corresponding the color coordinates (rounded to 4-decimals) in CIE 1931 color space. Exa...

18 days ago

Solved


Compute the reduced totient
The totient function counts numbers less than n that are relatively prime to n. The reduced totient function, or Carmichael lamb...

18 days ago

Load more