Solved


Create incrementing array
Given a and b generate an output matrix as shown in following examples: a=2 b=5 output=[2 20 200 2000 20000] a=4 b...

10 months ago

Solved


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

10 months ago

Solved


construct matrix with identical rows
Input a row vector such as x=1:10. Now we need to construct a matrix with L rows,of which every row vector is a copy of x. E...

10 months ago

Solved


Determine the length of a string of characters
Determine the length of a string of characters

10 months ago

Solved


find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

10 months ago

Solved


Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

10 months ago

Solved


select the primes of a vector
Find the prime numbers in a vector

10 months ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

10 months ago

Solved


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

10 months ago

Solved


Sum of first n positive integers
Given n, find the sum of first n positive integers Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these terms is 55

10 months ago

Solved


Calculate distance travelled when given radius and rotations
When given radius of wheel and number of rotations calculate total distance travelled consider pi=3.14

10 months ago

Solved


Create a Multiplication table matrix...
Create a product table in this format: P = [ 1 2 3 4 5; 2 4 6 8 10; 3 6 9 12 15; 4 8 12 1...

10 months ago

Solved


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

10 months ago

Solved


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

10 months ago

Solved


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

10 months ago

Solved


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

10 months ago

Solved


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

10 months ago

Solved


kmph to mps
convert kilometer per hour to meter per second

10 months ago

Solved


Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...

10 months ago

Solved


Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts example: a = 1, b = 2 output = 1 1.25 ...

10 months ago

Solved


surface of a spherical planet
you just discovered its circumference, that is the input.

10 months ago

Solved


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

10 months ago

Solved


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

10 months ago

Solved


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

10 months ago

Solved


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

10 months ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

10 months ago

Solved


Generate pi using logarithm
Generate pi using logarithm

10 months ago

Solved


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

10 months ago

Solved


Area of rhombus
Calculate the rhombus area

10 months ago

Solved


Duplicate each element of a vector.
for an n-dimensional vector x, the function should return another vector 2n-dimension which each element is repeated twice. Ex...

10 months ago

Load more