Community Profile

photo

Doanh Pham


214 total contributions since 2019

Doanh Pham's Badges

  • Speed Demon
  • Leader
  • Introduction to MATLAB Master
  • Draw Letters
  • Community Group Solver
  • CUP Challenge Master
  • Promoter
  • Solver

View details...

Contributions in
View by

Solved


Draw a 'Z'.
Given _n_ as input, generate a n-by-n matrix like 'Z' by _0_ and _1_ . Example: n=5 ans= [1 1 1 1 1 0 0 0 1 ...

2 Tage ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

3 Tage ago

Solved


Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

3 Tage ago

Solved


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

3 Tage ago

Solved


Inner product of two vectors
Find the inner product of two vectors.

4 Tage ago

Solved


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

4 Tage ago

Solved


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

10 Tage ago

Solved


Triangle Numbers Below N
This is an offshoot of <http://www.mathworks.com/matlabcentral/cody/problems/5-triangle-numbers Cody Problem 5: Triangle Numbers...

11 Tage ago

Solved


Element by element multiplication of two vectors
Given two input vectors, return the element-by-element product. Example A = [1 2 3] B = [7 3 1] The answer should be...

11 Tage ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

11 Tage ago

Solved


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

11 Tage ago

Solved


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

11 Tage ago

Solved


pressure to dB?
given x ratio of pressure, find corresponding y dB

11 Tage ago

Solved


Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1

11 Tage ago

Solved


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

11 Tage ago

Solved


square root
Find the square root (y) of an input (x).

11 Tage ago

Solved


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

11 Tage ago

Solved


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

11 Tage ago

Solved


Love triangles
Given a vector of lengths [a b c], determines whether a triangle with non-zero area (in two-dimensional Euclidean space, smarty!...

15 Tage ago

Solved


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

15 Tage ago

Solved


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

15 Tage ago

Solved


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

15 Tage ago

Solved


02 - Vector Variables 3
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_2c.png>> (all the numbers from 5 to -5 in increments of ...

15 Tage ago

Solved


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

15 Tage ago

Solved


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

15 Tage ago

Solved


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

15 Tage ago

Solved


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

15 Tage ago

Solved


Add two numbers
Add two numbers (For beginners)

15 Tage ago

Solved


Make one big string out of two smaller strings
If you have two small strings, like 'a' and 'b', return them put together like 'ab'. 'a' and 'b' => 'ab' For extra ...

15 Tage ago

Solved


Number of Horns on a unicorn!
Calculate the number of horns on a *unicorn*! And I'm talking about a unicorn with not more than one horn on it!

15 Tage ago

Load more