Solved


Matrix Generation.
if input n =1, generate a matrix y = [1]

8 years ago

Solved


calculate Compound Intrest
Calculate Compound Intrest for given data

8 years ago

Solved


Convert Kilometers to Miles
Convert kilometers to miles. Consider 1 km = 0.62 mile. Note: Don't use the '*' operator.

8 years ago

Solved


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

8 years ago

Solved


Implement zero-based indexing for Matrices
Given an input vector and position (which is zero based) output the value Example: x = [1 2; 4 5] pos = [0 1] value = 5 ...

8 years ago

Solved


Number of primes
Count the number of primes less than 'n'.

8 years ago

Solved


Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3, output = [4 4 4] Hint: Search for the function...

8 years ago

Solved


Permutations of input vector
Find and output all permutations of given vector

8 years ago

Solved


Make roundn function
Make roundn function using round. x=0.55555 y=function(x,1) y=1 y=function(x,2) y=0.6 y=function(x,3) ...

8 years ago

Solved


Delete blanks at the end of string
you got to delete all blank spaces which appears at the end of string

8 years ago

Solved


Product of Each Column
Given a matrix |mat| with |n| columns, return a row vector |v| of length |n|, where every element in |v| is the product of the |...

8 years ago

Solved


Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

8 years ago

Solved


Increment up an input vector
Increment up an input vector by adding the indices to the vector values. For example, if an input vector is [3, 2, 6, 1, 6], the...

8 years ago

Solved


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

8 years ago

Solved


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

8 years ago

Solved


Keep Only the Upper characters in a string
Keep Only the Upper characters in a string s = 'Sreeram Mohan'; output = SM;

8 years ago

Solved


Add a vector to a matrix
Given a matrix |mat| of size |mXn| and a row vector |v| of size |1Xs|, return a matrix with |m+1| rows that conatains |mat| over...

8 years ago

Solved


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

8 years ago

Solved


Extract a specific part of matrix!
In the given matrix, extract element that have odd rows and column number. For example A=[1 4 2 3 5] B=extractodd(A);...

8 years ago

Solved


raise 1/3
Raise a number to 1/3 power.

8 years ago

Solved


Degrees to Radian
Convert degrees to radians

8 years ago

Solved


Delete x value in given vector y.
Delete x value in given vector y. Exapmle x=5; y=[ 1 2 5 6 74 5 2 5] result=[1 2 6 74 2]

8 years ago

Solved


row removal
Consider a matrix and remove the first row of the matrix.

8 years ago

Solved


Convert number from given base to other base
Convert number from given base to other base. Example 400 in base 5, find equivalent number in base 8, it is 144.

8 years ago

Solved


Increase monotonically
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

8 years ago

Solved


A different counting method
Given an array (x) of integers, the "counting" array (y) is showing the number of identical consecutive integers in x in front o...

8 years ago

Solved


Separate even from odd numbers in a vector - without loops
*Without using loops*, rearrange a vector of integers such that the odd numbers appear at the beginning, and even numbers at the...

8 years ago

Solved


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

8 years ago

Solved


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

8 years ago

Solved


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

8 years ago

Load more