M Tech (RF and Microwaves)

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

oltre 3 anni 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...

circa 4 anni 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...

circa 4 anni 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 ...

circa 4 anni 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....

circa 4 anni 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];

circa 4 anni ago

Solved

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

If x = 5, y = 5 * (5+5) * 5 = 250

circa 4 anni ago

Solved

ASCII code of a leter.

Given the letter, the output will show the corresponding ASCII code.

circa 4 anni ago

Solved

ASCII Code

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

circa 4 anni ago

Solved

Area of a circle

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

circa 4 anni 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...

circa 4 anni ago

Solved

Find the qube of a give number.

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

circa 4 anni ago

Solved

find sum of the numbers in array

calculate the sum of numbers in a given array

circa 4 anni ago

Solved

find the mean of all elements in a matrix

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

circa 4 anni ago

Solved

find a specific element from an matrix

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

circa 4 anni ago

Solved

Calculating cost

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

circa 4 anni 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...

circa 4 anni 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...

circa 4 anni 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 + ...

circa 4 anni ago