문제를 풀었습니다


Quote Doubler
Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

대략 10년 전

문제를 풀었습니다


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

대략 10년 전

문제를 풀었습니다


Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

대략 10년 전

문제를 풀었습니다


How unique?
Sometimes, when we check unique entries of vector we would like to know how many times each value occurs. Given vector of num...

대략 10년 전

문제를 풀었습니다


Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...

대략 10년 전

문제를 풀었습니다


Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

문제를 풀었습니다


average for three points
how to calculate the average (for each three values of y) y=[2 3 5 3 4 2 3 4 5 3 2 7 8 6 5 5 4 3 3 3 2 ] you ...

대략 10년 전

문제를 풀었습니다


Sum Rows
Sum the same indexed (unique) rows. Examine the test suite. Related Challenge - <http://www.mathworks.com/matlabcentral/cody/...

대략 10년 전

문제를 풀었습니다


Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.

대략 10년 전

문제를 풀었습니다


Return the largest number that is adjacent to a zero
This example comes from Steve Eddins' blog: <http://blogs.mathworks.com/steve/2009/05/27/learning-lessons-from-a-one-liner/ Lear...

대략 10년 전

문제를 풀었습니다


Polynomial Multiplication
Multiply two polynomial equation.Given polynomial coefficients a and b.

대략 10년 전

문제를 풀었습니다


Concatenate a successive power matrix in a column matrix
Generate F = [M1 M^2 ... M^p] with M a matrix, without using for.

대략 10년 전

문제를 풀었습니다


Negative Infinity
Round the given array a towards negative infinity.

대략 10년 전

문제를 풀었습니다


Positive Infinity
Round the array a towards positive infinity

대략 10년 전

문제를 풀었습니다


Multielement indexing of a row array
The row array birthRateChina stores the China birth rate (per 1000 people) for years 2000 to 2012. Write a statement that create...

대략 10년 전

문제를 풀었습니다


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

문제를 풀었습니다


Determine the square root
Determine the square root of the value the user has entered, n.

대략 10년 전

문제를 풀었습니다


Factorial Numbers
Factorial is multiplication of integers. So factorial of 6 is 720 = 1 * 2 * 3 * 4* 5 *6 Thus 6 factorial = factorial(720)....

대략 10년 전

문제를 풀었습니다


Largest territory
Determine whose territory is largest. If there are two more large territory, determine a smaller number. For example, X ...

대략 10년 전

문제를 풀었습니다


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

대략 10년 전

문제를 풀었습니다


Hard limit function
Classify x data as if x>=0 then y=1 if x<0 then y=0 Example x = [ -2 -1 0 1 2] y = [ 0 0 1 1 1]

대략 10년 전

문제를 풀었습니다


Number of paths on a grid
Consider a grid formed by n vertices vertically down, and m vertices horizontally right. Your starting point is at the top lef...

대략 10년 전

문제를 풀었습니다


Which way to go?
Given an m*n grid, How many ways are there to go from upper left corner to the lower right one? You can only move right...

대략 10년 전

문제를 풀었습니다


Finger Counting
Just counting numbers using fingers. First all my ten fingers are closed. I will say 1 and open my one finger. Likewise for 6...

대략 10년 전

문제를 풀었습니다


ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
MATLABでは,角括弧の中に要素を入れることで、ベクトルを作成できる。 x = [1 2 3 4] また次のようにも書ける(コンマはオプション)。 x = [1, 2, 3, 4] 問題:次のベクトルを出力する関数を作成せよ。...

대략 10년 전

문제를 풀었습니다


Local Minima
Given a vector of data x, find the values of local minimum that is smaller than its neighbor elements. For example, if x =...

대략 10년 전

문제를 풀었습니다


Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...

대략 10년 전

문제를 풀었습니다


Number of problems
No, you don't read it wrong: this assignment is to return the number of this problem (and not the problem of this number).

대략 10년 전

더 보기