Solved


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displayed ...

12 months ago

Solved


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

12 months ago

Solved


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

12 months ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

12 months ago

Solved


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

12 months ago

Solved


Convert binary numbers array into array of decimal numbers.
Convert binary numbers array into array of decimal numbers. Example x=[ 11001000 ; 11001001 ; 11001010 ; 11001011 ; 11001100 ;...

12 months ago

Solved


MATLAB Basic: rounding III
Do rounding towards minus infinity. Example: -8.8, answer -9 +8.1 answer 8 +8.50 answer 8

12 months ago

Solved


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

12 months ago

Solved


Draw a '0' in a one matrix!

12 months ago

Solved


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

12 months ago

Solved


Converts numbers into characters
Converts numbers into characters

12 months ago

Solved


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

12 months ago

Solved


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

12 months ago

Solved


to the 2 all elements
to the 2 all elements

12 months ago

Solved


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

12 months ago

Solved


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

12 months ago

Solved


Find x rows where the sum of the numbers is the maximum
Find x rows where the sum of the numbers is the maximum. For example: when x is 2 and m is 2 3 5 0 2 3 5 5 6 0 9 4 then y =...

12 months ago

Solved


Draw a '5' in a zero matrix!

12 months ago

Solved


Draw a '2' in a zero matrix!

12 months ago

Solved


Draw a '6' in a zero matrix!

12 months ago

Solved


Draw a '8' in a zero matrix!

12 months ago

Solved


Draw a '3' in a zero matrix!

12 months ago

Solved


Draw a '9' in a zero matrix!

12 months ago

Solved


Draw a '4' in a zero matrix!

12 months ago

Solved


Draw a '7' in a zero matrix!

12 months ago

Solved


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

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

12 months ago

Solved


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

12 months ago

Solved


ICFP2024 003: Lambdaman 5
The ICFP2024 contest was held June 29 thru July 1. The contest consisted of five parts: ICFP Language, Lambdaman maze, Starship ...

12 months ago

Solved


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

12 months ago

Load more