Community Profile

# Jiahang Li

##### Last seen: 25 Tage ago
978 total contributions since 2018

Information and computing science student in China. I started playing Cody on 27th February 2018. MATLAB is my favorite tool in learning.

View details...

Contributions in
View by

Solved

Area-03
There are two circles of equal size are inscribed inside a square. They are tangent to each other. <https://serving.photos.ph...

etwa ein Monat ago

Solved

Basic matrix operations using standard MATLAB commands
Create the matrix: 1.0e+15 * 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000...

etwa ein Monat ago

Solved

Create tangent function out of sine function only
Please don't use cosine and tangent functions

etwa ein Monat ago

Solved

Create tangent function out of cosine only
Please don't use tangent and sine functions

etwa ein Monat ago

Solved

Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

etwa ein Monat ago

Solved

Count me in
Count the number of occurrences of the second input in the first input Ex. x1 = 12344455511; x2 =2; output = 1 ...

etwa ein Monat ago

Solved

Determinant of a 3x3 Matrix
Return the determinant of a 3x3 matrix. The built-in Matlab function det is not allowed.

etwa ein Monat ago

Solved

New Matrix with vector addition on diagonal
consider 2 vectors x=[1 2 3] y=[4 5 6] then generate a new Matrix, where Addition of x & y will be diagonal Elements...

etwa ein Monat ago

Solved

Creating a code via test suite :)
Given the test suites, create a code that would fit them :) *Clue: Pascal's Triangle

etwa ein Monat ago

Solved

Primes Checker
Given variable inputs Check if they are prime numbers

etwa ein Monat ago

Solved

Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

etwa ein Monat ago

Solved

Integrate Me
Given polynomial, output the integral (with k = 1 for simplicity purposes) Example: input = [2 1] % 2x+1 output = [1 1 1]...

etwa ein Monat ago

Solved

ASCII sum of phrases
Find the sum of the numeric equivalents of all characters entered in a phrase. For example: for the phrase 'My name is test', th...

etwa ein Monat ago

Solved

Raise each element to the power of its index in a matrix
In a matrix, A = [1,2;3,4] raise the power of each element like: 1^1+2^3+3^2+4^4 and add it all to produce the result 274

etwa ein Monat ago

Solved

Product of all elements in an array
Compute the product of all elements in an array.

etwa ein Monat ago

Solved

Capitalized string operations
Convert the input sentence to upper case and replace all vowels with an underscore ('_')

etwa ein Monat ago

Solved

generate capital english alphabets
Based on the numeric input 'n', generate the capital english alphabet starting from A till the english alphabet at the 'n'th pos...

etwa ein Monat ago

Solved

Remove white spaces at the end of the input string
Remove all trailing white spaces at the end of the input strings

etwa ein Monat ago

Solved

Check for keywords
If the entered string is a MATLAB keyword, return true else false

etwa ein Monat ago

Solved

Repetition of matrices
*A is a bold matrix: [1 2 3; 4 5 6;7 8 9]* Given an integer 'n' , a matrix B exists such that has n copies of A in the row an...

etwa ein Monat ago

Solved

Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

etwa ein Monat ago

Solved

Return median of a matrix
Compute median of a matrix of any dimension. Exclude the NaNs if any.

etwa ein Monat ago

Solved

Cofactor
Given a matrix, find the cofactor of the element in 'i'th row and 'j'th column.

etwa ein Monat ago

Solved

Factorial !
Calculate the factorial of a non-negative integer without using the built in function *factorial*

etwa ein Monat ago

Solved

Tridiagonal
Return an n-by-n matrix that has a, b, c as the subdiagonal, main diagonal, and superdiagonal entries in the matrix. Example ...

etwa ein Monat ago

Solved

Matrix Construction I
Given n, construct a matrix as shown in the example below. Example For n=8, the output should look like this: 1 2 3 4 ...

etwa ein Monat ago

Solved

Toeplitz Matrix
For a given square matrix of order n-by-n check whether this is a Toeplitz matrix or not. Return true if it is.

etwa ein Monat ago

Solved

(Linear) Recurrence Equations - Generalised Fibonacci-like sequences
This problem is inspired by problems <http://uk.mathworks.com/matlabcentral/cody/problems/2187-generalized-fibonacci 2187>, <htt...

etwa ein Monat ago

Solved

Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

etwa ein Monat ago

Solved

How many Fibonacci numbers?
Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...

etwa ein Monat ago