Solved

Transpose of matrix
Transpose of matrix as per test cases

meer dan 3 jaar ago

Solved

Block average
Given a matrix, calculate the block average of each disjoint sub-matrix of the same size. Assume that the size of the matrix alo...

meer dan 3 jaar ago

Solved

Crunch that matrix!
You are given an M x N matrix. Write a script that will compress this matrix into an M x (N/3) matrix, where each of the terms ...

meer dan 3 jaar ago

Solved

* Add stockPrice to the beginning of row array tickerTape

meer dan 3 jaar ago

Solved

The sliding puzzle: 15
If you are unfamiliar with the sliding puzzle, enter the command _fifteen_ in your MATLAB command window (or search online, of c...

meer dan 3 jaar ago

Solved

Fifteen Parity Check
The Matlab function fifteen initializes the 4x4 array with randperm(16). This produces 50% unsolvable puzzles. A <https://en.wik...

meer dan 3 jaar ago

Problem

Fifteen Parity Check
The Matlab function fifteen initializes the 4x4 array with randperm(16), which produces 50% unsolvable puzzles. A <https://en.wi...

meer dan 3 jaar ago | 1

Solved

center of mass
R is a given matrix with size [n,2]. R(i,:) is interpreted as the 2D-position of a mass point with mass i. Calculate the center ...

meer dan 3 jaar ago

Solved

Detect pair of equal values in a Matrix
A 2D matrix of 2 rows and N columns with random integer numbers. A = [3 1 2 4 6 6 7; 7 3 2 1 5 2 4] ...

meer dan 3 jaar ago

Solved

generate number in particular way
A = [1 5 2 7]; MAX = 10; generate a array Y = [1 2 2 2 2 2 3 3 4 4]; i.e. total eleme...

meer dan 3 jaar ago

Solved

Wien's displacement law
Given the black body temperature (in *Celsius*), output the weavelength (in *meters*) at which the radiation peaks, according to...

meer dan 3 jaar ago

Solved

Isothermal Expansion
Given the initial pressure and volume of an ideal gas, calculate the new volume, given the new pressure. Hint: <https://en.wi...

meer dan 3 jaar ago

Solved

RGB to CMYK
Convert an RGB code to the corresponding CMYK code for printing. The RGB input is a [1×3] double array between 0 and 1. ...

meer dan 3 jaar ago

Solved

Does this dress make me look fat
For the input string "Does xyz make me look fat" output the string "No, xyz does not make you look fat"

meer dan 3 jaar ago

Solved

LMI Twins : Fuzzy Image matching
The image below from <http://logicmastersindia.com/2016/04P/ Logic Masters India Marathon 2016> is puzzle "Twins Co-Ordinates" w...

meer dan 3 jaar ago

Problem

LMI Twins : Fuzzy Image matching
The image below from <http://logicmastersindia.com/2016/04P/ Logic Masters India Marathon 2016> is puzzle "Twins Co-Ordinates" w...

meer dan 3 jaar ago | 0

Solved

String Find with Wildcards of a Cell array
Given a cell array of strings and a search string with single character (?) or multiple character (*) wildness return the indice...

meer dan 3 jaar ago

Problem

String Find with Wildcards of a Cell array
Given a cell array of strings and a search string with single character (?) or multiple character (*) wildness return the indice...

meer dan 3 jaar ago | 0

Solved

Approximate e
Given a and n, compute and approximation to f = a * e ^ n, without the use of exp, string operations, or floating point numbers....

meer dan 3 jaar ago

Solved

Sum of Logarithms
Given a vector, v, of real positive numbers, compute the sum, s, of the base-10 logarithms of the elements of v, without the use...

meer dan 3 jaar ago

Solved

GJam 2016 Rd1A: Rank and File (Large)
This Challenge is derived from <http://code.google.com/codejam/contest/4304486/dashboard#s=p1 GJam Rd1A 2016 Rank and File>. Thi...

meer dan 3 jaar ago

Problem

GJam 2016 Rd1A: Rank and File (Large)
This Challenge is derived from <http://code.google.com/codejam/contest/4304486/dashboard#s=p1 GJam Rd1A 2016 Rank and File>. Thi...

meer dan 3 jaar ago | 0

Solved

GJam 2016 Rd1A: Rank and File (small)
This Challenge is derived from <http://code.google.com/codejam/contest/4304486/dashboard#s=p1 GJam Rd1A 2016 Rank and File>. Thi...

meer dan 3 jaar ago

Problem

GJam 2016 Rd1A: Rank and File (small)
This Challenge is derived from <http://code.google.com/codejam/contest/4304486/dashboard#s=p1 GJam Rd1A 2016 Rank and File>. Thi...

meer dan 3 jaar ago | 0

Solved

How many ways to write
How many ways to write a positive integer x as the sum of n numbers , where , x>n and no n number is less than -2.

meer dan 3 jaar ago

Solved

Number of divisors of a given number
Given a Number n, return the number of his divisors without listing them example: n=14 ; Divisors={1,7,2,14} ; y=4 n=...

meer dan 3 jaar ago

Solved

Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.

meer dan 3 jaar ago

Solved

Column arrays: Transpose a row array
* Construct a row array countValues with elements 1 to endValue, using the colon operator. * Transpose countValues to result in...

meer dan 3 jaar ago

Solved

Variable sized row arrays
* Reverse the contents of row array mileMarkers

meer dan 3 jaar ago

Solved

Array resizing: Removing elements
* Remove elements 2, 4, and 6 from row array pendingTasks

meer dan 3 jaar ago