A résolu


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

plus de 2 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

plus de 2 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

plus de 2 ans il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

plus de 2 ans il y a

A résolu


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

plus de 2 ans il y a

A résolu


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

plus de 2 ans il y a

A résolu


to the 2 all elements
to the 2 all elements

plus de 2 ans il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

plus de 2 ans il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

plus de 2 ans il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

plus de 2 ans il y a

A résolu


Draw a '0' in a one matrix!

plus de 2 ans il y a

A résolu


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

plus de 2 ans il y a

A résolu


Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<https://i.imgur.com/jlZDHhq.png>> Image courtesy of <http://up...

plus de 2 ans il y a

A résolu


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

plus de 2 ans il y a

A résolu


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

plus de 2 ans il y a

A résolu


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

plus de 2 ans il y a

A résolu


Create a vector
Create a vector from 0 to n by intervals of 2.

plus de 2 ans il y a

A résolu


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

plus de 2 ans il y a

A résolu


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

plus de 2 ans il y a

A résolu


Find max
Find the maximum value of a given vector or matrix.

plus de 2 ans il y a

A résolu


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

plus de 2 ans il y a

A résolu


Inner product of two vectors
Find the inner product of two vectors.

plus de 2 ans il y a

A résolu


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

plus de 2 ans il y a

A résolu


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

presque 3 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

presque 3 ans il y a

A résolu


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

presque 3 ans il y a

A résolu


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

presque 3 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

presque 3 ans il y a

A résolu


given 3 sides, find area of this triangle
1:3 -> 0; 3:5 -> 6

presque 3 ans il y a

A résolu


Determine the square root
Determine the square root of the value the user has entered, n.

presque 3 ans il y a

Charger plus