解決済み


leap year
find the number of leap years within the given time interval

13日 前

解決済み


SHA256 Hashing
Conduct SHA256 hashing on a hexadecimal input to produce a 256-bit hexadecimal output. Example: hash = SHA256('aa') hash ...

13日 前

解決済み


Decimal to binary conversion (without using built-in function)
convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

13日 前

解決済み


Positive Definiteness of a Matrix
Determine if input matrix is positive definite or not.

13日 前

解決済み


Kolakoski Sequence
This is a modified version of the kolakoski sequence. Refer to the problem <https://www.mathworks.com/matlabcentral/cody/p...

16日 前

解決済み


Fangs of pseudo-vampire number
given a number, find all the fangs of that number. A pseudo-vampire number can have multiple of fangs. The output should be a...

20日 前

解決済み


Find index of non empty cell array
This question aims to understand the characteristics of MATLAB programs. Educational problem. Please find empty index of cell...

25日 前

解決済み


Pseudo-vampire number
refer to <https://en.wikipedia.org/wiki/Vampire_number> Given a number x, determine whether it is a pseudo-vampire number. ...

26日 前

解決済み


How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

26日 前

解決済み


MinMax
* x=[2 4 3 1 6 4 6] * output , y=[1 6 2 4 3] here,y(1) is the minimum of x, y(2) is the maximum of x, y(3) is the 2nd mini...

26日 前

解決済み


Combinatorics - 01
* Input=[x,n] * where x is an array of numbers(or strings) and n is a +ve number. for example, x=[1,2] and n=6. The out...

26日 前

解決済み


Ugly numbers - 03
For this case, a number is defined ugly if it has prime factors consisting of only elements of x. Find the nth ugly number. ...

27日 前

解決済み


Ugly numbers - 02
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number. n.b. unlike the previous problem,trivi...

27日 前

解決済み


Ugly numbers - 01
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number.

27日 前

解決済み


La derivada numérica
El concepto de pendiente o inclinación de una función recta es muy intuitivo para cualquier persona. Desde el punto de vista mat...

約1ヶ月 前

解決済み


Cryptography with A Square Matrix : Decoding
Previous Problem: <https://www.mathworks.com/matlabcentral/cody/problems/45279-cryptography-with-a-square-matrix-encoding Crypto...

約1ヶ月 前

解決済み


Cryptography with A Square Matrix : Encoding
Matrix inverse operation can be used to encode or decode of a message. For example text = 'matlab & cody'. numeric e...

約1ヶ月 前

解決済み


Orthogonal Circles
Check whether two given circles are orthogonal or not. Two circles are orthogonal if they create a right angle at their inter...

約1ヶ月 前

解決済み


Orthogonal lines
Check whether two given lines are orthogonal or not. Two lines are orthogonal if they create a right angle at their intersect...

約1ヶ月 前

解決済み


No of squares in a grid
given a m*n grid calculate the no of possible squares & rectangles on that grid. output: y=[no of rectangles , no of sqa...

約1ヶ月 前

解決済み


Find the centroid of triangle
Imagine that you want to calculate the *centroid* of some _triangles_ given in matrix form. First the coordinates of the vertice...

約1ヶ月 前

解決済み


Calculate triangle area
Imagine that you want to calculate the areas of some triangles given in matrix form. First the coordinates of the vertices of th...

約1ヶ月 前

解決済み


Game of life - 02
refer to <https://en.wikipedia.org/wiki/Conway's_Game_of_Life> refer to <https://www.mathworks.com/matlabcentral/cody/probl...

約1ヶ月 前

解決済み


Game of life - 01
Refer to <https://en.wikipedia.org/wiki/Conway's_Game_of_Life> given a set of cells (the initial state) represented by 1(l...

約1ヶ月 前

解決済み


Zero
given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero. * if a=11(1011) t...

約1ヶ月 前

解決済み


Subdivide the Segment
Two points, P1 and P2, with integer x-y coordinates are given. These uniquely determine a third point, P0, on the extended line...

約1ヶ月 前

解決済み


Be happy
check whether the given number is happy in b-base. * A happy number can be defined as a number which will yield 1 when it is ...

約2ヶ月 前

解決済み


Remove duplicated vertices
First input V_in is a vertices list (X Y Z coordinates) which may contain duplicata (identical rows). Second input T_in is th...

約2ヶ月 前

解決済み


Restricted Addition v4
This problem is <https://www.mathworks.com/matlabcentral/cody/problems/45264-restricted-addition-v3 Restricted Addition v3> with...

約2ヶ月 前

解決済み


Roots of quadratic equation
Given a quadratic equation ax^2 + bx + c = 0, write a function to return its roots.

約2ヶ月 前

Load more