Community Profile

photo

William


Last seen: Today
3.364 total contributions since 2012

Contact

William's Badges

  • Cody5 Hard Master
  • Introduction to MATLAB Master
  • Combinatorics I Master
  • Computational Geometry III Master
  • Word Puzzles Master
  • Strings I Master
  • Card Games Master
  • Project Euler I
  • Divisible by x Master
  • Computational Geometry IV Master
  • Indexing V Master
  • Computational Geometry II Master
  • Draw Letters
  • Matrix Manipulation I Master
  • Magic Numbers II Master

View all

Contributions in
View by

Solved


Castling-03
Given the position of different chess pieces on the chessboard, figure out whether castling is valid or not in the next move (wh...

ein Tag ago

Solved


Castling-02
This is a follow up of problem <https://www.mathworks.com/matlabcentral/cody/groups/1/problems/45329-castling-01> Given...

ein Tag ago

Solved


Castling-01
Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...

ein Tag ago

Solved


Find the index of elements in a string vector
In the vector of v, find the index of elements specified by a. v = ["Lion","Koara","Elephant","Snake","Dog","Cat","Camel"]; ...

ein Tag ago

Solved


Design matrix from eigenvalues
Write a function that takes one input argument n and outputs a (n x n) square matrix A with the following properties: -A has...

ein Tag ago

Solved


Decimal Fraction to binary conversion
Given an fraction decimal number n, convert it to its equivalent binary number. If it is an infinite binary fraction, keep it...

2 Tage ago

Solved


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

2 Tage ago

Solved


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

3 Tage ago

Solved


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'

3 Tage ago

Solved


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

3 Tage ago

Solved


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

5 Tage ago

Solved


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

9 Tage ago

Solved


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

15 Tage ago

Solved


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

15 Tage ago

Solved


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

16 Tage ago

Solved


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

16 Tage ago

Solved


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

16 Tage ago

Solved


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

16 Tage ago

Solved


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

16 Tage ago

Solved


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

16 Tage ago

Solved


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

20 Tage ago

Solved


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

20 Tage ago

Solved


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

20 Tage ago

Solved


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

22 Tage ago

Solved


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

22 Tage ago

Solved


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

22 Tage ago

Solved


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

29 Tage ago

Solved


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

30 Tage ago

Solved


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

30 Tage ago

Solved


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

30 Tage ago

Load more