문제를 풀었습니다


Word Counting and Indexing
You are given a list of strings, each being a list of words divided by spaces. Break the strings into words, then return a maste...

대략 4년 전

문제를 풀었습니다


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

대략 4년 전

문제를 풀었습니다


Converting binary to decimals
Convert binary to decimals. Example: 010111 = 23. 110000 = 48.

대략 4년 전

문제를 풀었습니다


Can you beat the lottery again (for hardcore coder) ?
Inspired by the Problem 1713 by Chris E. Here is the code that generates the first lottery number: rng('shuffle'); numb...

대략 4년 전

문제를 풀었습니다


Tiling a matrix
Given a matrix and a number of columns, replicate matrix in a single row

대략 4년 전

문제를 풀었습니다


Make a run-length companion vector
Given a vector x, return a vector r that indicates the run length of any value in x. Each element in r shows how many times the ...

대략 4년 전

문제를 풀었습니다


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

대략 4년 전

문제를 풀었습니다


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

대략 4년 전

문제를 풀었습니다


We love vectorized solutions. Problem 1 : remove the row average.
Given a 2-d matrix, remove the row average from each row. Your solution MUST be vectorized. The solution will be tested for ac...

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


calculate the length of matrix
input 1 array, calculate the length

대략 4년 전

문제를 풀었습니다


Sudoku square
We have a small Sudoku square, but one number is missing. x = [ 1 5 4 8 6 3 0 9 7 ] Make a function, wher...

대략 4년 전

문제를 풀었습니다


First N Perfect Squares
*Description* Return the first N perfect squares *Example* input = 4; output = [ 1 4 9 16 ];

대략 4년 전

문제를 풀었습니다


Perfect square.
Determine if the input is a perfect square or not. Example - If input is 25, return 1. If input is 17, return 0.

대략 4년 전

문제를 풀었습니다


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

대략 4년 전

문제를 풀었습니다


Logarithmically spaced vector creation using linspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Avoid using logspace and use the linsp...

대략 4년 전

문제를 풀었습니다


Word Distance - Sum
Let's suppose that the distance of a word can be calculated by summing the differences between its letters, having assigned the ...

대략 4년 전

문제를 풀었습니다


letter yes yes & letter no no
Split a string into two strings, wherein the first string has all alphabetic letters and the second string has all the remaining...

대략 4년 전

문제를 풀었습니다


Inner product of two vectors
Find the inner product of two vectors.

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

대략 4년 전

문제를 풀었습니다


Converting numbers back from extended form
Thanks for all the help you guys gave me on writing out the numbers in extended form in <http://www.mathworks.com/matlabcentral/...

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


Rounding off numbers to n decimals
Inspired by a mistake in one of the problems I created, I created this problem where you have to round off a floating point numb...

대략 4년 전

문제를 풀었습니다


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

대략 4년 전

문제를 풀었습니다


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

대략 4년 전

문제를 풀었습니다


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

대략 4년 전