Community Profile

# Ngo Minh Ngoc

187 total contributions since 2019

View details...

Contributions in
View by

Solved

Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

4 Tage ago

Solved

Divisible by 10
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

4 Tage ago

Solved

Divisible by 5
Pursuant to the <http://www.mathworks.com/matlabcentral/cody/problems/42404-divisible-by-2 first problem> in this series, this o...

4 Tage ago

Solved

ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122

6 Tage ago

Solved

ASCii Code
Using Matlab get the ASCii for '?'

6 Tage ago

Solved

Replacing a row
For matrix G=[1 2 3; 4 5 6; 7 8 9] Replace the 2nd row with 8s **remember to create matrix G

6 Tage ago

Solved

Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to <http://www.mathworks....

6 Tage ago

Solved

Divisible by 2
This is the first problem in a set of "divisible by x" problems. You will be provided a number as a string and the function you ...

6 Tage ago

Solved

Is my wife right?
Regardless of input, output the string 'yes'.

6 Tage ago

Solved

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

13 Tage ago

Solved

Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];

13 Tage ago

Solved

multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

13 Tage ago

Solved

Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...

13 Tage ago

Solved

First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

15 Tage ago

Solved

Remove NaN ?
input -> matrix (n*m) with at least one element equal to NaN; output -> matrix(p*m), the same matrix where we deleted the enti...

24 Tage ago

Solved

Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

24 Tage ago

Solved

Remove the Zero
Given an array n, remove all zeros

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

26 Tage ago

Solved

Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...

26 Tage ago

Solved

Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

26 Tage ago

Solved

Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

26 Tage ago

Solved

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

26 Tage ago

Solved

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

26 Tage ago

Solved

Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

26 Tage ago

Solved

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

26 Tage ago

Solved

Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

26 Tage ago

Solved

03 - Matrix Variables 2
Make the following variable: <<http://samle.dk/STTBDP/Assignment1_3b.png>> A 9x9 matrix of zeros, but with the following v...

26 Tage ago

Solved

Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

26 Tage ago

Solved

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

26 Tage ago

Solved

Half?
If you toss an even number (x) of coins, what is the probability (y) of 50% head and 50% tail?

26 Tage ago