Gelöst


Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...

fast 4 Jahre vor

Gelöst


Sum sum!!!
Sum the numbers from 1 to n

fast 4 Jahre vor

Gelöst


Remove Upper Case Letters
Example Matlab --> atlab proBlem --> prolem Enter --> nter

fast 4 Jahre vor

Gelöst


String Logic 19
Examples: 'DIG' --> 'I' 'IMPORTANT' --> 'MOTN' 'DEAL' --> 'EL' 'LIMB' --> 'IB' 'MOSTLY' --> 'OTY'

fast 4 Jahre vor

Gelöst


String Logic 18
Examples: 'DIG' --> 'DG' 'IMPORTANT' --> 'IPRAT' 'DEAL' --> 'DA' 'LIMB' --> 'LM' 'MOSTLY' --> 'MSL'

fast 4 Jahre vor

Gelöst


String Logic 16
Examples: 'DIG' --> 'DIG' 'KIMBALL' --> 'ALLKIMB' 'DEAL' --> 'EALD' 'LIMB' --> 'IMBL' 'MADE' --> 'ADEM'

fast 4 Jahre vor

Gelöst


Remove NaNs and numbers adjacent to NaNs
The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

fast 4 Jahre vor

Gelöst


Perl 1: push
_This is part of a series of perl function which were very helpful for many perl programmers. Could you implement it in Matlab?_...

fast 4 Jahre vor

Gelöst


Number of lattice points within a circle
Find the number of points (x,y) in square lattice with x^2 + y^2 =< n. This is related to Jame's <http://www.mathworks.com/matla...

fast 4 Jahre vor

Gelöst


Continued fractions
Find a <http://en.wikipedia.org/wiki/Continued_fraction continued fraction> approximation of x.

fast 4 Jahre vor

Gelöst


Find the square of the sum of the digits of a number
If a number (n) is provided as an input, find the square of the sum of the digits of the number. Example If n = 21, the an...

fast 4 Jahre vor

Gelöst


Add two different item as shown in example
Add two different item as shown in example x=5; y='ab'; Then output must be'5ab';

fast 4 Jahre vor

Gelöst


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

fast 4 Jahre vor

Gelöst


Find out value of polynomial at different value.
Find out value of polynomial at different value. Example p(s) = s + 8 For s=0, value is 8.

fast 4 Jahre vor

Gelöst


Create vector as shown in test cases
Create vector as shown in test cases

fast 4 Jahre vor

Gelöst


Replace odd number in given matrix by zero
Replace the odd numbers in a given matrix with zero. Example A = [ 17 24 1 8 15 23 5 7 ...

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


Find out value of sine given by degree.
Find out value of sine given by degree. If theta=30, it's value must be 0.5.

fast 4 Jahre vor

Gelöst


Replace values under a limit
For a vector x and number n, the goal is to find every element of x inferior to n and replace it by n. Example x= [ 1 2 3...

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


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

fast 4 Jahre vor

Gelöst


Is It a Palindrome?
Given a string or array, determine if it is a palindrome.

fast 4 Jahre vor

Gelöst


Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

fast 4 Jahre vor

Gelöst


Areas
Given certain dimensions determine the area of that shape. If given only one value assume its the radius. Use round(x) to round ...

fast 4 Jahre vor

Gelöst


Perimeters/Circumference
Given an array. Determine whether the perimeter is of a circle, triangle or square. Then calculate the perimeter.

fast 4 Jahre vor

Gelöst


Volume of Equilateral Triangle Prism
Find volume of equilateral triangle prism x = side of triangle l = length of prism

fast 4 Jahre vor

Gelöst


Volume of Cylinder
Find the volume of a cylinder

fast 4 Jahre vor

Gelöst


Can I make a right triangle ?
Input(a) - is vector with any amount of values. Interpreted as legths of sides. Output(b): * Is true if there are any 3 va...

fast 4 Jahre vor

Gelöst


Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...

fast 4 Jahre vor

Gelöst


factor to number
e.g. input number x=10 then it should produce y=25 or x=100 then y should be 2255. write a function or code to generate the same...

fast 4 Jahre vor

Mehr laden