Gelöst


Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

12 Monate vor

Gelöst


Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

12 Monate vor

Gelöst


Find MPG of Lightest Cars
The file cars.mat contains a table named cars with variables Model, MPG, Horsepower, Weight, and Acceleration for several classi...

12 Monate vor

Gelöst


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

12 Monate vor

Gelöst


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

12 Monate vor

Gelöst


Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

12 Monate vor

Gelöst


Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

12 Monate vor

Gelöst


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

12 Monate vor

Gelöst


Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

12 Monate vor

Gelöst


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

12 Monate vor

Gelöst


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...

12 Monate vor

Gelöst


Find the Pattern 10

12 Monate vor

Gelöst


Find Logic 30

12 Monate vor

Gelöst


Find the Pattern 5

12 Monate vor

Gelöst


Find the Pattern 3

12 Monate vor

Gelöst


Find the Pattern 2

12 Monate vor

Gelöst


Find the Pattern 1

12 Monate vor

Gelöst


Find Logic 28

12 Monate vor

Gelöst


Find Logic 27

12 Monate vor

Gelöst


Find Logic 26

12 Monate vor

Gelöst


Find Logic 25

12 Monate vor

Gelöst


Find Logic 24

12 Monate vor

Gelöst


Find Logic 23

12 Monate vor

Gelöst


Find Logic 22

12 Monate vor

Gelöst


Find Logic 21

12 Monate vor

Gelöst


Find Logic 20

12 Monate vor

Gelöst


Find Logic 14
Guess the Logic! logic(1) = 100 logic(2) = 96 logic(3) = 105 logic(4) = 89 logic(5) = 114 Make a function logic(x) which w...

12 Monate vor

Gelöst


Find Logic 16

12 Monate vor

Gelöst


Find Logic 9
Guess the Logic! logic(1) = 4 logic(2) = 1 logic(3) = 10 logic(4) = 2

12 Monate vor

Gelöst


Find Logic 17

12 Monate vor

Mehr laden