Solved

Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0

environ un an ago

Solved

Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

environ un an ago

Solved

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

environ un an ago

Solved

Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_ *Extra reward* (get a _freepass_): Once a mont...

environ un an ago

Solved

sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

environ un an ago

Solved

Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

environ un an ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

environ un an ago

Solved

Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

environ un an ago

Solved

Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

environ un an ago

Solved

03 - Matrix Variables 4
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3d.png>> A 3x4 NaN (Not a Number) matrix (Hint: use ...

environ un an ago

Solved

Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

environ un an ago

Solved

Calculate square and cube of number
Calculate square and cube of number x

environ un an ago

Solved

Min of a Matrix
Return the minimum value in the given matrix.

environ un an ago

Solved

Back to basics 1 - Saving
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...

environ un an ago

Solved

Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

environ un an ago

Solved

Area of square
Find the area of a square whose diagonal length is given as x.

environ un an ago

Solved

Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

environ un an ago

Solved

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

environ un an ago

Solved

Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

environ un an ago

Solved

Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

environ un an ago

Solved

Area of rhombus
Calculate the rhombus area

environ un an ago

Solved

Concatenate two strings
Its very easy. Just concatenate two strings.

environ un an ago

Solved

Reverse a matrix
Its simple. You have to reverse a given matrix.

environ un an ago

Solved

Max of a Vector
Write a function to return the max of a vector

environ un an ago

Solved

Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

environ un an ago

Solved

Wheat on a chessboard pt 1
If a chessboard were to have wheat placed upon each square such that one grain were placed on the first square and each successi...

environ un an ago

Solved

Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

environ un an ago

Solved

02 - Vector Variables 1
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2a.png>>

environ un an ago

Solved

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

environ un an ago

Solved

Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.

environ un an ago