Community Profile

photo

Luu Van Duc


169 total contributions since 2019

Luu Van Duc's Badges

  • Introduction to MATLAB Master
  • Cody Problems in Japanese Master
  • Draw Letters
  • CUP Challenge Master
  • Community Group Solver
  • Solver

View details...

Contributions in
View by

Solved


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

13 hours ago

Solved


Area of a circle
Find the value for area of the circle if diameter is given

13 hours ago

Solved


find radius of cone
if Slant height of Cone(I)& hight of Cone(H) given then find radius of the Cone(R) for example I=5,h=4 then the ans R=3;

13 hours ago

Solved


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

13 hours ago

Solved


Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

13 hours ago

Solved


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

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

14 hours ago

Solved


Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...

14 hours ago

Solved


surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

14 hours 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!

14 hours ago

Solved


Circumscribed circles
Given the lengths of the 3 sides of a triangle, output the radius of the circumscribed circle. Example: [3 4 5] -> 2.5

14 hours ago

Solved


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

14 hours ago

Solved


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

14 hours ago

Solved


Distance walked 2D
Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

14 hours ago

Solved


give nth decimal place of pi
max 15th place after the decimal point is ok for now

16 hours ago

Solved


How many jokers?
* Given DNA codes of a group of suspects, * and a code for certain types of jokers, * Count how many jokers of that type. * ...

16 hours ago

Solved


Array of Ones
Create a 100 X 100 array of ones.

16 hours ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

16 hours ago

Solved


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

17 hours ago

Solved


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

17 hours ago

Solved


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

17 hours ago

Solved


Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...

17 hours ago

Solved


easy problem
Find the last element of the array

20 hours ago

Solved


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

20 hours ago

Solved


the average value of the elements
Calculate the average value of the elements in the array

20 hours ago

Solved


calculate the length of matrix
input 1 array, calculate the length

20 hours ago

Solved


Calculate the square root of a number
Input a Output b = srt(a)

20 hours ago

Solved


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

20 hours ago

Solved


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

20 hours ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

20 hours ago

Load more