Solved


Add two hex numbers
Add two hex numbers

10 years ago

Solved


This is a palindrome and so am I
A palindrome is a sequence of characters which reads the same backward or forward, for instance 'a man a plan a canal panama'...

10 years ago

Solved


Go back n times
You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6; 7; 8]). If (n=3) you will return following; [ 1 NaN NaN Na...

10 years ago

Solved


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 years ago

Solved


Put two time series onto the same time basis
Use interpolation to align two time series onto the same time vector. This is a problem that comes up in <http://www.mathwork...

10 years ago

Solved


테스트
벡터 x가 주어져 있으면 전체 벡터의 총합의 반을 만들어 주는 원소들 (y)을 출력하는 함수 subsub 을 작성하라 예) 입력 x = [1 2 3 4 5 6 7] 출력 y = [1 6 7] 이유 : ...

10 years ago

Solved


Cellular Automaton | Rule X
Cellular Automata (CA) provide a convenient way to represent many kinds of systems in which the values of cells (either 0 or 1) ...

10 years ago

Solved


Assignment Problem
Given a matrix where row i corresponds to person i, and column j corresponds to task j and cell (i,j) corresponds to the time ta...

10 years ago

Solved


Replace values out of an interval with the lower or upper values
For a vector or matrix X and an interval [n1,n2], the function replace every element of x inferior to n1 by n1, and every elemen...

10 years ago

Solved


테스트
어떤 수 (10진수)가 입력 (x)으로 들어오면 이 수를 이진수로 변환했을때 1의 갯수를 출력하는 함수 your_fcn_name 를 작성하라. 예) x=215 이면 이를 이진수로 변환하면 11010111 이므로 ...

10 years ago

Solved


테스트
입력으로 어떤 수 (n) 이 주어져 있다면 그 수의 약수의 갯수 (y)를 출력하는 함수 your_fcn_name 을 작성하라 예) n=14 이면 약수가 1,2,7,14 이므로 y=4 n=68 이면 약수가 1...

10 years ago

Solved


테스트
입력으로 벡터 x와 정수 n이 주어진 다면 벡터 x에서 n번째로 큰 수 (y)를 출력하는 함수 n_max(x, n) 를 작성하라. 만일 그런 수가 없다면 NaN (not a number)를 출력하면 된다. 예...

10 years ago

Solved


테스트
다음과 같은 벡터를 1,2,2,3,3,3,4,4,4,4 만드는 사용자 정의 함수 your_fcn_name 을 작성하시오. 이 벡터는 그 숫자가 그 갯수 만큼 있다. 예) 만일 입력 n=3이면 3까지...

10 years ago

Solved


테스트
만일 어떤 벡터 v가 0부터 0까지의 값들만 원소로 갖는다고 할때 [3 4 2 9] ---> 3429 [1 3 5] ---> 135 와 같이 벡터를 수로 변환하는 함수 digits2Number 를 ...

10 years ago

Solved


테스트 문제
다음과 같은 일을 수행하는 사용자 정의 함수 switchrow 를 짜라. y = switchrow(x, a, b) 입력으로 행렬 x을 받으면 x의 a행과 b행을 바꿔서 출력하는 switchrow 사용자 정의 함수를 짜라...

10 years ago

Solved


Poker Series 02: isQuads
The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is to...

10 years ago

Solved


Poker Series 01: isStraightFlush
The Poker Series consists of many short, well defined functions that when combined will lead to complex behavior. Our goal is t...

10 years ago

Solved


Values in Array
How many values are in the array

10 years ago

Solved


Find the sum of n squares
What is the sum of the squares of the first n integers?

10 years ago

Solved


Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...

10 years ago

Solved


give-nth-decimal-place-of-pi up to 100 digits
max 100th place after the decimal point this is upgrade problem of 142

10 years ago

Solved


Nonuniform quantizer as a piecewise constant function
Implement a nonuniform quantizer as the following piecewise function: y = -3.5, x < -3 y = -1.5, -3 &#8804; x < -1 y = ...

10 years ago

Solved


Number Persistence
A number's persistence is the number of steps required to reduce it to a single digit by multiplying all its digits to obtain a ...

10 years ago

Solved


Narcissistic problem
How many likes has this problem?

10 years ago

Solved


Text processing - Help Johnny write a letter home from camp
Johnny overuses the word 'great'. Write a script that will help him with this and future letters. If a sentence contains more ...

10 years ago

Solved


Minefield Sonar
*Background* In mine-hunting games (e.g. Microsoft Minesweeper), the user is provided with a covered grid that, upon a left c...

10 years ago

Solved


Steal, Share, or Catch
You, I, and a few other characters are going to play a game of *Steal, Share or Catch*. We are going to play it 10,000 times vs...

10 years ago

Solved


newRMS
find root mean square of a signal x in less time than the test code and accurate to six places.

10 years ago

Solved


Find matching parenthesis
One of the most indispensable things about a great text editor for programming is the ability to quickly jump between matching p...

10 years ago

Solved


Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If _p_ is the perimeter of a right angle triangle with integral length sides, { _a_, _b_, _c_ }, there are exactly three solutio...

10 years ago

Load more