Content Feed
문제를 풀었습니다
The Top 5 Primes
This problem series invites you to solve two simple problems related to the integer NUMBER FIVE, in order to celebrate <https://...
대략 3년 전
문제를 풀었습니다
Octoberfest festival
A group of students decided to visit Octoberfest festival. First they ordered one beer, then after half-hour they taken one more...
대략 3년 전
문제를 풀었습니다
Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...
대략 3년 전
문제를 풀었습니다
Encode Me From The Past
Given this input x = 2, 5, 1, 2, 4, 1, 1, 3 output should be (Five 2's, Two 1's, One 4, Three 1's) [2 2 2 2 2 1 1 4 1...
대략 3년 전
문제를 풀었습니다
Conic equation
A conic of revolution (around the |z| axis) can be defined by the equation s^2 – 2*R*z + (k+1)*z^2 = 0 where |s^2=x^2+y...
거의 4년 전
문제를 풀었습니다
Extract leading non-zero digit
<http://en.wikipedia.org/wiki/Benford%27s_law Benford's Law> states that the distribution of leading digits is not random. This...
거의 4년 전
문제를 풀었습니다
Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...
거의 4년 전
문제를 풀었습니다
Duplicates
Write a function that accepts a cell array of strings and returns another cell array of strings *with only the duplicates* retai...
거의 4년 전
문제를 풀었습니다
Tic Tac Toe FTW
Given a tic tac toe board: * 1 represents X * 0 represents empty. * -1 represents O It is X's move. If there is an imme...
거의 4년 전
문제를 풀었습니다
Summing Digits within Text
Given a string with text and digits, add all the numbers together. Examples: Input str = '4 and 20 blackbirds baked in a...
거의 4년 전
문제를 풀었습니다
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
거의 4년 전
문제를 풀었습니다
QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...
거의 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년 전
문제를 풀었습니다
Counting Money
Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...
거의 4년 전
문제를 풀었습니다
Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...
거의 4년 전
문제를 풀었습니다
Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...
거의 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년 전
문제를 풀었습니다
Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...
거의 4년 전
문제를 풀었습니다
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
대략 4년 전
문제를 풀었습니다
Fill a zeros matrix
The aim is to fill an array of all zeros given a numerical value and the index of row and columns for this value. 3 Inputs: ...
대략 4년 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
대략 4년 전
문제를 풀었습니다
Do Fast Fourier Transformation
Example Fast Fourier Transformation from vector [2,1]) ans = 3 1
대략 4년 전
질문
pause-clc-fprintf-pause ... fprintf is ignored
My thinking was that this: fprintf('Test %d',1) pause clc fprintf('Test %d',2) pause should: Print "Test 1" Wait for t...
4년 초과 전 | 답변 수: 0 | 0
0
답변답변 있음
Integration with pi - Rational Approximation?
Thanks so much. Makes perfect sense!
Integration with pi - Rational Approximation?
Thanks so much. Makes perfect sense!
4년 초과 전 | 0
질문
Integration with pi - Rational Approximation?
I'm having trouble understanding the difference between these two integration commands: clear; syms y; int(1000*9.8*(10-y)*(pi...
4년 초과 전 | 답변 수: 2 | 0
2
답변문제를 풀었습니다
Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients. example: a=[3 4 5]; b=[...
거의 5년 전
문제를 풀었습니다
Multiply two polynomials p and q given in in vector representation.
Multiply two polynomials p and q given in vector representation. Example p=[-2 0 1 -1 3 2] q=[1 0 -1 2 ...
거의 5년 전
문제를 풀었습니다
Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...
거의 5년 전