Perfect Square or not
find Given input x is perfect square or not,if yes then output y=1.else y=0
4年以上 前
解決済み
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 ...
Free passes for everyone!
_Simply return the name of the coolest numerical computation software ever_
*Extra reward* (get a _freepass_):
Once a mont...
4年以上 前
解決済み
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...
4年以上 前
解決済み
Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise
Min of a Matrix
Return the minimum value in the given matrix.
4年以上 前
解決済み
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...
4年以上 前
解決済み
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...
4年以上 前
解決済み
Area of square
Find the area of a square whose diagonal length is given as x.
Reverse a matrix
Its simple. You have to reverse a given matrix.
4年以上 前
解決済み
Max of a Vector
Write a function to return the max of a vector
4年以上 前
解決済み
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; ...
4年以上 前
解決済み
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...
4年以上 前
解決済み
Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
4年以上 前
解決済み
02 - Vector Variables 1
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_2a.png>>
4年以上 前
解決済み
Rounding
Round 10.67 and make 'y' equal to that number.