Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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]

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


Total energy

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


Invert a Logical Matrix
Given a logical matrix, invert it

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


prime test
find largest 2 digit prime number

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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]

alrededor de 4 años hace

Resuelto


Transpose of matrix
Transpose of matrix as per test cases

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Resuelto


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

alrededor de 4 años hace

Cargar más