Community Profile

Neha Singh

IIT Roorkee

99 total contributions since 2016

M Tech (RF and Microwaves)

View details...

Contributions in
View by

Solved

Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

mer än 4 år ago

Solved

Display positive elements of matrix.
Display positive elements of matrix.

mer än 4 år ago

Solved

Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

mer än 4 år 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...

mer än 4 år 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 ...

mer än 4 år ago

Solved

Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

mer än 4 år 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];

mer än 4 år ago

Solved

Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

mer än 4 år ago

Solved

ASCII code of a leter.
Given the letter, the output will show the corresponding ASCII code.

mer än 4 år ago

Solved

ASCII Code
Using matlab, give the symbol that is associated with ASCii code 90.

mer än 4 år ago

Solved

Square root of a number
Write a code that will output the square root of x.

mer än 4 år ago

Solved

Area of a circle
Given the radius x, y would be the area of a circle. Pi = 3.1416

mer än 4 år ago

Solved

Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets \$x per hour and a yearly bonus of \$2000? (Let, 50 wee...

mer än 4 år ago

Solved

Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

mer än 4 år ago

Solved

Log of a number
Write a script that will give the log of x as output.

mer än 4 år ago

Solved

Find the qube of a give number.
You are given a number, find the qube of that number.

mer än 4 år ago

Solved

find sum of the numbers in array
calculate the sum of numbers in a given array

mer än 4 år ago

Solved

find max
You are given an array number find the maximum

mer än 4 år ago

Solved

find minimum
find the minimum from an array

mer än 4 år ago

Solved

Find mean
given an array, find the mean of the number in that array

mer än 4 år ago

Solved

find the mean of all elements in a matrix
given a matrix, just find the mean of all elements in the matrix

mer än 4 år ago

Solved

find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

mer än 4 år ago

Solved

first element of matrix
find the first elements of a column matrix

mer än 4 år ago

Solved

find lenth of array
you have given an array, find the length of that.

mer än 4 år ago

Solved

Find subtraction
Given a, b. Find a-b

mer än 4 år ago

Solved

list of prime numbers
n is given find the largest prime number <=n

mer än 4 år ago

Solved

Calculating cost
You sold a Product at \$x and gain 10% What was the cost of the product?

mer än 4 år ago

Solved

Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...

mer än 4 år ago

Solved

Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

mer än 4 år ago

Solved

Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

mer än 4 år ago