문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


Draw a '0' in a one matrix!

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


Converts numbers into characters
Converts numbers into characters

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


to the 2 all elements
to the 2 all elements

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


Draw a '5' in a zero matrix!

2개월 전

문제를 풀었습니다


Draw a '2' in a zero matrix!

2개월 전

문제를 풀었습니다


Draw a '6' in a zero matrix!

2개월 전

문제를 풀었습니다


Draw a '8' in a zero matrix!

2개월 전

문제를 풀었습니다


Draw a '3' in a zero matrix!

2개월 전

문제를 풀었습니다


Draw a '9' in a zero matrix!

2개월 전

문제를 풀었습니다


Draw a '4' in a zero matrix!

2개월 전

문제를 풀었습니다


Draw a '7' in a zero matrix!

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

2개월 전

문제를 풀었습니다


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

3개월 전

더 보기