Solved

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

ongeveer 2 maanden ago

Solved

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

ongeveer 2 maanden ago

Solved

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

ongeveer 2 maanden ago

Solved

to the 2 all elements
to the 2 all elements

ongeveer 2 maanden ago

Solved

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

ongeveer 2 maanden ago

Solved

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

ongeveer 2 maanden ago

Solved

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

ongeveer 2 maanden ago

Solved

Draw a '0' in a one matrix!

ongeveer 2 maanden ago

Solved

Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vert...

ongeveer 2 maanden ago

Solved

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

ongeveer 2 maanden ago

Solved

~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

ongeveer 2 maanden ago

Solved

Alternating sum
Given vector x, calculate the alternating sum y = x(1) - x(2) + x(3) - x(4) + ...

ongeveer 2 maanden ago

Solved

Sum of first n terms of a harmonic progression
Given inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

ongeveer 2 maanden ago

Solved

Project Euler: Problem 6, Natural numbers, squares and sums.
The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

ongeveer 2 maanden ago

Solved

Magic is simple (for beginners)
Determine for a magic square of order n, the magic sum m. For example m=15 for a magic square of order 3.

ongeveer 2 maanden ago

Solved

Return the first and last characters of a character array
Return the first and last character of a string, concatenated together. If there is only one character in the string, the functi...

ongeveer 2 maanden ago

Solved

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

ongeveer 2 maanden ago

Solved

Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

ongeveer 2 maanden ago

Solved

Check if number exists in vector
Return 1 if number _a_ exists in vector _b_ otherwise return 0. a = 3; b = [1,2,4]; Returns 0. a = 3; b = [1,...

ongeveer 2 maanden ago

Solved

Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

ongeveer 2 maanden ago

Solved

Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

ongeveer 2 maanden ago

Solved

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

2 maanden ago

Solved

Make a random, non-repeating vector.
This is a basic MATLAB operation. It is for instructional purposes. --- If you want to get a random permutation of integer...

2 maanden ago

Solved

Draw a '4' in a zero matrix!

2 maanden ago

Solved

Draw a '6' in a zero matrix!

2 maanden ago

Solved

Draw a '9' in a zero matrix!

2 maanden ago

Solved

Draw a '7' in a zero matrix!

2 maanden ago

Solved

Draw a '8' in a zero matrix!

2 maanden ago

Solved

Draw a '3' in a zero matrix!

2 maanden ago