문제를 풀었습니다


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

6년 초과 전

문제를 풀었습니다


Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

6년 초과 전

문제를 풀었습니다


Operate on matrices of unequal, yet similar, size
You may want to add a vector to a matrix, implying that the vector is added to each column of the matrix. Or multiply a 3x4x5 ma...

6년 초과 전

문제를 풀었습니다


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

6년 초과 전

문제를 풀었습니다


Combined Ages 2 - Symmetric, n ≥ 3
Following on <http://www.mathworks.com/matlabcentral/cody/problems/42382-combined-ages-1-symmetric-n-3 Combined Ages 2>, you wil...

6년 초과 전

문제를 풀었습니다


Combined Ages 1 - Symmetric, n = 3
You have probably seen the common riddle wherein combined ages are provided and you must determine the individual ages. For exam...

6년 초과 전

문제를 풀었습니다


Projector Matrix
Write a function to determine whether or not the matrix is a projector. Projector matrices are defined as P^2 = P.

6년 초과 전

문제를 풀었습니다


Orthonormal matrix
You decide whether any given matrix is an orthonormal matrix or not. If each column in a matrix is perpendicular to the other...

6년 초과 전

문제를 풀었습니다


Nilpotent matrix
Check if matrix A is <http://mathworks.com/ nilpotent>.

6년 초과 전

문제를 풀었습니다


Project Euler: Problem 9, Pythagorean numbers
A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

6년 초과 전

문제를 풀었습니다


Raise Matrix to Power
For a given square matrix x and scalar a, find x^a without using '^' or 'mpower'.

6년 초과 전

문제를 풀었습니다


Solve the system of equations.
_Ax=b_ * _A_ - square coefficient matrix * _b_ - right side column vector Find vecor _x_.

6년 초과 전

문제를 풀었습니다


Gauss Eliminate 2-by-2 example
Use forward elimination to make the coefficient matrix, A, an upper triangular matrix, and then solve using back substitution, f...

6년 초과 전

문제를 풀었습니다


Count digits
Count total number of digits from 1 to n. * n=13 * output=17 since from [1-9] total 9 digits.[10-13] total 4*2=8 digits.

6년 초과 전

문제를 풀었습니다


Zero
given an integer a, find the smallest possible integer b(b>0) such that their bitwise logical AND is zero. * if a=11(1011) t...

6년 초과 전

문제를 풀었습니다


Mean number of letters per word (Easy)
Given a character array, s, representing a sentence, return a, the arithmetic mean of the number of letters per word in the give...

대략 7년 전

문제를 풀었습니다


Easy problem
This is an easy problem. Just click on submit.

대략 7년 전

문제를 풀었습니다


Reverse the Matrix
Given a Matrix A, reverse it. Such that, last element of A becomes 1st and vice versa. for example: Input = [1 2 3;4 5 ...

7년 초과 전

문제를 풀었습니다


You never ask a lady her age
Instead you ask her to multiply her age by 10, then subtract any of the first nine multiples of 9 (9,18,...,81), and tell you th...

7년 초과 전

문제를 풀었습니다


Testing Problem Creation
This is where MATLAB based question will be

7년 초과 전

문제를 풀었습니다


Number Power
Raise a number to itself.

7년 초과 전

문제를 풀었습니다


Solve The Equation
The coefficients of a system of equations are given in two vectors, x1 and x2. Write a function to solve the equation and return...

7년 초과 전

문제를 풀었습니다


Addition
Add 2 numbers e.g a=1; b=1 c=a+b;

7년 초과 전

문제를 풀었습니다


Return all matrix elements except elements on diagonal
Consider a given Matrix A=[a b c; d e f; g h i] then return a row vector T such that it contains all the El...

7년 초과 전

문제를 풀었습니다


Project Euler: Problem 4, Palindromic numbers
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 ...

7년 초과 전

문제를 풀었습니다


Project Euler: Problem 3, Largest prime factor
The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number being input, input might be ui...

7년 초과 전

문제를 풀었습니다


Get the combinations
Consider p,q = 2 vectors of same or different length. Get a Output Array which has all the possible combinations of Elements o...

7년 초과 전

문제를 풀었습니다


Transpose the Matrix
Transpose the given matrix, e.g. x=[a b;c d] transpose of x = [a c;b d]

7년 초과 전

문제를 풀었습니다


Find the Pattern
Find the pattern between input and output. Write a function that gives the correct output for any input. *Hint: magic*

7년 초과 전

문제를 풀었습니다


Pass the Threshold!!
Write a Matlab function that will take as input a matrix of arbitrary dimensions and a scalar threshold value, and return a vec...

거의 8년 전

더 보기