Community Profile

# CAM

Last seen: 3일 전 2012년부터 활동

All

배지 보기

#### Content Feed

보기 기준

답변 있음
How to stop a for loop by press a button APP designer ?
Make the Stop button a toggle button. Within the FOR loop, check the status of the Stop button. If it is toggled-on, then brea...

4달 전 | 0

| 수락됨

질문

stack command errors with multiple column variables of different data types
I have a table (imported from a poorly-designed spreadsheet) with repeated column variables I would like to stack. The fields a...

4달 전 | 답변 수: 1 | 0

### 1

답변

문제를 풀었습니다

Chess probability
The difference in the ratings between two players serves as a predictor of the outcome of a match (the <http://en.wikipedia.org/...

5달 전

문제를 풀었습니다

Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...

5달 전

문제를 풀었습니다

Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 ...

5달 전

문제를 풀었습니다

Rotate input square matrix 90 degrees CCW without rot90
Rotate input matrix (which will be square) 90 degrees counter-clockwise without using rot90,flipud,fliplr, or flipdim (or eval)....

5달 전

문제를 풀었습니다

Matrix with different incremental runs
Given a vector of positive integers a = [ 3 2 4 ]; create the matrix where the *i* th column contains the vector *1:a(i)...

6달 전

문제를 풀었습니다

Make an awesome ramp for a tiny motorcycle stuntman
Okay, given a vector, say v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 3 6 9 11 0; 6 9 ...

6달 전

문제를 풀었습니다

Flip the main diagonal of a matrix
Given a n x n matrix, M, flip its main diagonal. Example: >> M=magic(5); >> flipDiagonal(M) 9 24 1 ...

6달 전

문제를 풀었습니다

surrounded matrix
With a given matrix A (size m x n) create a matrix B (size m+2 x n+2) so that the matrix A is surrounded by ones: A = [1 2 ...

6달 전

문제를 풀었습니다

Set some matrix elements to zero
First get the maximum of each *row*, and afterwards set all the other elements to zero. For example, this matrix: 1 2 3 ...

6달 전

문제를 풀었습니다

Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

6달 전

문제를 풀었습니다

Connect Four Win Checker
<http://en.wikipedia.org/wiki/Connect_Four Connect Four> is a game where you try to get four pieces in a row. For this problem, ...

9달 전

문제를 풀었습니다

Encode Roman Numerals
Create a function taking a non-negative integer as its parameter and returning a string containing the Roman Numeral representat...

9달 전

문제를 풀었습니다

Longest Divisor Run
Given the vector a, find the longest run of consecutive numbers that can be evenly divided by the same number d where d > 1. ...

9달 전

문제를 풀었습니다

Counting in Finnish
Sort a vector of single digit whole numbers alphabetically by their name, in Finnish. See the Wikipedia page for <http://en.wik...

9달 전

문제를 풀었습니다

Remove the polynomials that have positive real elements of their roots.
The characteristic equation for a dynamic system is a polynomial whose roots indicate its behavior. If any of the roots of the p...

9달 전

문제를 풀었습니다

Given a list of US states, remove all the states that start with the letter N. If s1 = 'Alabama Montana Nebraska Vermont Ne...

9달 전

문제를 풀었습니다

DNA N-Gram Distribution
Given a string s and a number n, find the most frequently occurring n-gram in the string, where the n-grams can begin at any poi...

10달 전

문제를 풀었습니다

Remove the small words from a list of words.
Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words ...

10달 전

문제를 풀었습니다

Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

10달 전

문제를 풀었습니다

Given two arrays, find the maximum overlap
Given two arrays s1 and s2, create a new array s3 which is as short as possible and contains both arrays. If s1 = [1 2 3 4 5]...

12달 전

문제를 풀었습니다

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

1년 이상 전

문제를 풀었습니다

What is the next step in Conway's Life?
Given a matrix A that represents the state of <http://en.wikipedia.org/wiki/Conway's_Game_of_Life Conway's game of Life> at one ...

2년 이하 전

문제를 풀었습니다

Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

2년 이하 전

문제를 풀었습니다

Mandelbrot Numbers
The <http://en.wikipedia.org/wiki/Mandelbrot_set Mandelbrot Set> is built around a simple iterative equation. z(1) = c z...

2년 이하 전

질문

Appdesigner uitable and uistyle
I created a uitable in appdesigner and populated it with data. I want to make the font in the 4th column blue and bold. I used...

2년 이하 전 | 답변 수: 1 | 1

### 1

답변

문제를 풀었습니다

Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

2년 이하 전

문제를 풀었습니다

Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...

약 2년 전

문제를 풀었습니다

Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
For a row vector: V=[7 1 2 -3] there is one sign change (from 2 to -3). So, the function you write must return N=1. F...

약 2년 전