Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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.

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


kmph to mps
convert kilometer per hour to meter per second

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

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

3 Monate 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]

3 Monate vor

Gelöst


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


Generate pi using logarithm
Generate pi using logarithm

3 Monate vor

Gelöst


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

3 Monate vor

Gelöst


Area of rhombus
Calculate the rhombus area

3 Monate vor

Gelöst


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

3 Monate vor

Mehr laden