Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

11ヶ月 前

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

11ヶ月 前

kmph to mps
convert kilometer per hour to meter per second

11ヶ月 前

MATLAB Basic: rounding II

11ヶ月 前

Rounding
Round 10.67 and make 'y' equal to that number.

11ヶ月 前

pressure to dB?
given x ratio of pressure, find corresponding y dB

11ヶ月 前

Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

11ヶ月 前

MATLAB Basic: rounding IV

11ヶ月 前

02 - Vector Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 1...

11ヶ月 前

All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

11ヶ月 前

Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

11ヶ月 前

Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

11ヶ月 前

Implement simple rotation cypher
If given a letter from the set: [abc...xyz] and a shift, implement a shift cypher. Example: 'abc' with a shi...

11ヶ月 前

QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

11ヶ月 前

Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

11ヶ月 前

2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

11ヶ月 前

Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

11ヶ月 前

Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

11ヶ月 前

Determine the square root
Determine the square root of the value the user has entered, n.

11ヶ月 前

Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

11ヶ月 前

The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

11ヶ月 前

So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

11ヶ月 前

Reindex a vector
You are given two vectors of equal length. Vector N has numeric values (no Inf or NaN) while vector IDX has integers. Place th...

11ヶ月 前

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

11ヶ月 前

Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix and row and column, output the index of th...

11ヶ月 前

03 - Matrix Variables 5
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3e.png>>

11ヶ月 前

03 - Matrix Variables 6
Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

11ヶ月 前

03 - Matrix Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

11ヶ月 前

Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

11ヶ月 前