解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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]

約4年 前

解決済み


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

約4年 前

解決済み


Total energy

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


Invert a Logical Matrix
Given a logical matrix, invert it

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


prime test
find largest 2 digit prime number

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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]

約4年 前

解決済み


Transpose of matrix
Transpose of matrix as per test cases

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

解決済み


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

約4年 前

さらに読み込む