Gelöst


Crate a vector of logarithmically spaced
Create a vector of logarithmically spaced from 10^0 to 10^x with n sample Example: if x=4 and n=3 Answer must be=[1 100 10...

fast 4 Jahre vor

Gelöst


Create Vector containing following elements
Create Vector containing following elements A=[pi eps NaN inf -inf flintmax];

fast 4 Jahre vor

Gelöst


Find out characteristics equation of given matrix.
Find out characteristics equation of given matrix. A=[0 2; 1 8] then char. eq is s^2-8*s-2=0 and answer should be [1 -8 -2]

fast 4 Jahre vor

Gelöst


count to vector
Return a matrix of numbers of dimension K by N, where K = prod(v), and N=length(v). The rows count from a vector of ones up to v...

fast 4 Jahre vor

Gelöst


Total energy

fast 4 Jahre vor

Gelöst


Mix it up!
Given an input string S, return a new string B, that is created by taking one character from the front and then the end iterativ...

fast 4 Jahre vor

Gelöst


Volume of a sphere given its surface area
You just measured its surface area, that is the input.

fast 4 Jahre vor

Gelöst


Invert a Logical Matrix
Given a logical matrix, invert it

fast 4 Jahre vor

Gelöst


arithmetic progression
I've written a program to generate the first few terms of <https://en.wikipedia.org/wiki/Arithmetic_progression arithmetic progr...

fast 4 Jahre vor

Gelöst


Array GCD
* Find Greatest Common Divisor in a given array * Function Template: function ans = arraygcd(a) % a=[45 15 200 ...

fast 4 Jahre vor

Gelöst


Matrix rotation as per given angle
Given a user defined matrix and angle of rotation, rotate the elements of output matrix as clockwise or anti-clockwise. Angle wi...

fast 4 Jahre vor

Gelöst


Cumulative difference
Given an array, return the cumulative difference. Example a = [ 1 3 5 7 ] cumdiff = [ 1 2 1 -2 ]

fast 4 Jahre vor

Gelöst


Create a matrix with difference of each row of input matrix
With a given input matrix A, create a output matrix B in such a way that each row in B is a difference of rows of input matrix A...

fast 4 Jahre vor

Gelöst


Interior angles
Find the sum of interior angles for polygon of x sides.

fast 4 Jahre vor

Gelöst


prime test 2
enter the only non prime,non composite number

fast 4 Jahre vor

Gelöst


prime test
find largest 2 digit prime number

fast 4 Jahre vor

Gelöst


how tall are you?
you can find the length wit this code.

fast 4 Jahre vor

Gelöst


Draw a triangle of ones
For any given n, return a matrix that includes a triangle of ones of height n: Example n = 3 output = [0,0,1,0,0 ...

fast 4 Jahre vor

Gelöst


Energy of an object
Calculate the total mechanical energy of an object. Total Energy= Potential energy + Kinetic energy P.E.=m*g*h K.E.=1/2...

fast 4 Jahre vor

Gelöst


Find all prime factors of the input
Given an input x, find its all prime factors. Return the vector with all factors in ascending order. Efficiency is the key here...

fast 4 Jahre vor

Gelöst


Easy Sequences 11: Factorial Digits without Trailing Zeros
Here is an easy one... It is not difficult to count the number of digits of the factorial of a given number. For example for 'n...

fast 4 Jahre vor

Gelöst


Weave two vectors into one
Weave the two given vectors into one as shown below. Example: If a = [1 1 1] b = [0 0 0] then y = [1 0 1 0 ...

fast 4 Jahre vor

Gelöst


find the roots of a quadratic equation
for e.g x = [ 2 -1 -3] y = [1.5 -1]

fast 4 Jahre vor

Gelöst


find whether it is prime or not
For a given number find if its prime

fast 4 Jahre vor

Gelöst


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

fast 4 Jahre vor

Gelöst


Union of two set decreasing order
Union of two set decreasing order Say, x=[1 2 5] and y=[5 7 8] then answer must be [8 7 5 2 1]

fast 4 Jahre vor

Gelöst


Transpose of matrix
Transpose of matrix as per test cases

fast 4 Jahre vor

Gelöst


Calculate Percentage
Given marks obtained and total marks, calculate the percentage.

fast 4 Jahre vor

Gelöst


RGB to CMYK
Convert an RGB code to the corresponding CMYK code for printing. The RGB input is a [1×3] double array between 0 and 1. ...

fast 4 Jahre vor

Gelöst


Sequence
Let S be a sequence of numbers Let Find for some , where and .

fast 4 Jahre vor

Mehr laden