문제를 풀었습니다


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

13년 초과 전

문제를 풀었습니다


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

13년 초과 전

문제를 풀었습니다


Given a matrix, return the last eigen value
Given a matrix, return the first eigen value For example: x = magic(5) 17 24 1 8 15 23 5 7 14 ...

13년 초과 전

문제를 풀었습니다


Similar Triangles - find the height of the tree
Given the height, h1, of a power pole, shorter than a tree, a given distance, x2 away, please find h2, height of the tree. Pleas...

13년 초과 전

문제를 풀었습니다


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

13년 초과 전

문제를 풀었습니다


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end...

13년 초과 전

문제를 풀었습니다


Negative matrix
Change the sign of all elements in given matrix.

13년 초과 전

문제를 풀었습니다


Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.

13년 초과 전

문제를 풀었습니다


Do you like your boss?
Do you like your boss? Answer can be any string! For example: Boss = 'Do you like your boss?'; Output = 'yes' or ...

13년 초과 전

문제를 풀었습니다


Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

13년 초과 전

문제를 풀었습니다


Phonebook-like problem
strcmpi('Yes', 'No')

13년 초과 전

문제를 풀었습니다


What percentage?
Calculate the output c as the percentage of a on b for given a and b.

13년 초과 전

문제를 풀었습니다


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

13년 초과 전

문제를 풀었습니다


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

13년 초과 전

문제를 풀었습니다


Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...

13년 초과 전

문제를 풀었습니다


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

13년 초과 전

문제를 풀었습니다


Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...

13년 초과 전

문제를 풀었습니다


Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...

13년 초과 전

문제를 풀었습니다


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

13년 초과 전

문제를 풀었습니다


Return area of square
Side of square=input=a Area=output=b

13년 초과 전

문제를 풀었습니다


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

13년 초과 전

문제를 풀었습니다


Solve the set of simultaneous linear equations
Given this pair of simultaneous linear equations: 2x + 3y = 23 3x + 4y = 32 Find the solution set (x,y)

13년 초과 전

문제를 풀었습니다


Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x. Example: Input: ...

13년 초과 전

문제를 풀었습니다


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

13년 초과 전

문제를 풀었습니다


"mirror" matrix
Create n x 2n "mirror" matrix of this type: e.g. for n = 2 m = [1 2 2 1;1 2 2 1] e.g. for n = 3 m = [1 2 3 3 2 1...

13년 초과 전

문제를 풀었습니다


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

13년 초과 전

문제를 풀었습니다


Equal to their cube
Tell me three real numbers that are equal to their cubes?

13년 초과 전

문제를 풀었습니다


Will there be a new leader?
Simply answer the title.

13년 초과 전

문제를 풀었습니다


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

13년 초과 전

문제를 풀었습니다


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

13년 초과 전

더 보기