문제를 풀었습니다


Can you reshape the matrix?
Given a matrix A, is it possible to reshape it into another matrix with the given number of rows?

거의 4년 전

문제를 풀었습니다


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

거의 4년 전

문제를 풀었습니다


find whether it is prime or not
For a given number find if its prime

거의 4년 전

문제를 풀었습니다


Convert from integer to binary
if true % decimalToBinaryVector(x) end

거의 4년 전

문제를 풀었습니다


Relative ratio of "1" in binary number
Input(n) is positive integer number Output(r) is (number of "1" in binary input) / (number of bits). Example: * n=0; r=...

거의 4년 전

문제를 풀었습니다


Sort in descending order.

거의 4년 전

문제를 풀었습니다


Binary code (array)
Write a function which calculates the binary code of a number 'n' and gives the result as an array(vector). Example: Inpu...

거의 4년 전

문제를 풀었습니다


Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

거의 4년 전

문제를 풀었습니다


Finding sum of even numbers in a vector.
Find the sum of all the even numbers present in the input vector x. Examples: Input x = [1 2 3 4] Output y is 6 Input...

거의 4년 전

문제를 풀었습니다


Matrix Ax=B problem
Take a incoming A and B vector, and solve for x

거의 4년 전

문제를 풀었습니다


Sum two matrices
Take two incoming matrices, and sum them

거의 4년 전

문제를 풀었습니다


More Simple String Concatenation
Take the first string input, reverse the order of the string from the end to beginning (i.e. apple becomes elppa), add a space a...

거의 4년 전

문제를 풀었습니다


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

거의 4년 전

문제를 풀었습니다


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

거의 4년 전

문제를 풀었습니다


Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise

거의 4년 전

문제를 풀었습니다


Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector

거의 4년 전

문제를 풀었습니다


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

거의 4년 전

문제를 풀었습니다


Matrix Max Finder
Output the maximum value in a matrix

거의 4년 전

문제를 풀었습니다


Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

거의 4년 전

문제를 풀었습니다


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

거의 4년 전

문제를 풀었습니다


Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors

거의 4년 전

문제를 풀었습니다


Cube root of max value in a vector
Find the cube root of the maximum value in a vector

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

거의 4년 전

문제를 풀었습니다


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

거의 4년 전

문제를 풀었습니다


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

거의 4년 전

문제를 풀었습니다


Solving Quadratic Equations (Version 1)
Quadratic equations have the form: ax^2 + bx + c = 0. Example: x^2 + 3x + 2 = 0, where a = 1, b = 3, and c = 2. The equation has...

거의 4년 전

문제를 풀었습니다


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

거의 4년 전

문제를 풀었습니다


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

거의 4년 전

문제를 풀었습니다


Scalar Matrix Manipulation
Assume, input x is a scalar matrix such as, x = 2 0 0 0 2 0 0 0 2 th...

거의 4년 전

더 보기