Community Profile

# Sourav Mondal

### The University of Melbourne

Last seen: 5 mois il y a Actif depuis 2012

Cloudlets, Fog computing

All

#### Content Feed

Afficher par

A résolu

Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

environ 6 ans il y a

A résolu

Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

environ 6 ans il y a

A résolu

Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

environ 10 ans il y a

A résolu

Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

environ 10 ans il y a

A résolu

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

environ 10 ans il y a

A résolu

Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

environ 10 ans il y a

A résolu

Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

environ 10 ans il y a

A résolu

Back to basics 5 - Clipboard
Covering some basic topics I haven't seen elsewhere on Cody. Copy the input string to the clipboard

environ 10 ans il y a

A résolu

Project Euler: Problem 7, Nth prime
By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can see that the 6th prime is 13. What is the Nth prime nu...

environ 10 ans il y a

A résolu

Back to basics 11 - Max Integer
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive integer MATLAB can handle.

environ 10 ans il y a

A résolu

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!

environ 10 ans il y a

A résolu

Rotate a Matrix
Input a Matrix x, Output y is the matrix rotating x 90 degrees clockwise

environ 10 ans il y a

A résolu

Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

environ 10 ans il y a

A résolu

Calculate the sum of two numbers. Example input = [2 3] output = 5

environ 10 ans il y a

Problème

Calculate the sum of two numbers. Example input = [2 3] output = 5

environ 10 ans il y a | 11 | 1210 solveurs

A résolu

Given a complex number, output quadrant 'I' 'II' 'III' or 'IV' | II | I | ...

environ 10 ans il y a

A résolu

Find the largest value in the 3D matrix
Given a 3D matrix, A, find the largest value. E.g. >> A = 1:9; >> A=reshape(A,[3 1 3]); >> islargest(A) ans = 9

environ 10 ans il y a

A résolu

Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

environ 10 ans il y a

A résolu

Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

environ 10 ans il y a

A résolu

Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

environ 10 ans il y a

A résolu

Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

environ 10 ans il y a

A résolu

Increment a number, given its digits
Take as input an array of digits (e.g. x = [1 2 3]) and output an array of digits that is that number "incremented" properly, (i...

environ 10 ans il y a

A résolu

Return the first and last character of a string
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

environ 10 ans il y a

A résolu

Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody. Return a value equal to the number of input arguments to the fun...

environ 10 ans il y a

A résolu

Back to basics 10 - Max Float
Covering some basic topics I haven't seen elsewhere on Cody. Return the largest positive floating-point number MATLAB can han...

environ 10 ans il y a

A résolu

Project Euler: Problem 10, Sum of Primes
The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below the input, N. Thank you <http:/...

environ 10 ans il y a

A résolu

Who knows the last digit of pi?
There is only one man who knows the last digit of pi, who is that man? Give the name of that man, who, by popular believe, can ...

environ 10 ans il y a

A résolu

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

environ 10 ans il y a

A résolu

Back to basics 7 - Equal NaNs
Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

environ 10 ans il y a

A résolu

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

environ 10 ans il y a