Content Feed
문제를 풀었습니다
Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...
10년 초과 전
문제를 풀었습니다
Homemade: Control Charts
This problem is a simple version of control charts in statistics. Intput consists from 30 or more observations. * Upper limi...
10년 초과 전
문제를 풀었습니다
Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...
10년 초과 전
문제를 풀었습니다
Remove element(s) from cell array
You can easily remove an element (or a column in any dimension) from a normal matrix, but assigning that value (or range) empty....
10년 초과 전
문제를 풀었습니다
Simple Caesar Cypher - shift encrypt a message given an index number
A Caesar cypher is a simple shift encryption method. Your goal is to create a function that allows a user to input a string and ...
10년 초과 전
문제를 풀었습니다
Count decimal digits of a number
* Given an integer number you have to return the number of its digits. * For example 248 has 3 digits and 1589 has 4 digits ...
10년 초과 전
문제를 풀었습니다
Better Index Number
Let's say you want to save many, many files and append these files with a certain sortable index number. As you probably know, y...
10년 초과 전
문제를 풀었습니다
Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F_n = F_(n-1) + F_(n-2) * where F_0 = 0 and F_1 ...
10년 초과 전
문제를 풀었습니다
Convert this color - RGB Vector to Hex String
Given a 3 element RGB vector corresponding to a color (given by the MATLAB color spec <http://www.mathworks.com/help/matlab/ref/...
10년 초과 전
문제를 풀었습니다
German tank problem
The <http://en.wikipedia.org/wiki/German_tank_problem German tank problem> is a well-known statistical problem that attempts to ...
10년 초과 전
문제를 풀었습니다
Grid traversal
Given a line defined by (x1,y1) & (x2,y2),return the number of squares that the line crosses on the grid (a square is 1x1). ...
10년 초과 전
문제를 풀었습니다
Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.
10년 초과 전
문제를 풀었습니다
Finding neighbors of [-1:1] in a matrix....
Hello All! Well I found this one fun to figure out, all you have to do is make a matrix of 1's or 0's (true or false) that sh...
10년 초과 전
문제를 풀었습니다
saving m-file
when I save M-file the program is closed suddenly and also it does so when I choose (open) from file menu
10년 초과 전
문제를 풀었습니다
Make a 1 hot vector
Make a vector of length _N_ that consists of all zeros except at index _k_, where it has the value 1. Example: Input ...
10년 초과 전
문제를 풀었습니다
Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...
10년 초과 전
문제를 풀었습니다
Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5
10년 초과 전
문제를 풀었습니다
Check if equal
Return true if all the elements of an nD array are equal, false otherwise.
10년 초과 전
문제를 풀었습니다
Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.
10년 초과 전
문제를 풀었습니다
Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...
10년 초과 전
문제를 풀었습니다
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 ...
10년 초과 전
문제를 풀었습니다
Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value F, convert to a Celsius value C. While the equation is C = 5/9 * (F - 32), as an exercise use two state...
10년 초과 전
문제를 풀었습니다
Create a row array using double colon operator
Create a row array from 9 to 1, using the double colon operator.
10년 초과 전
문제를 풀었습니다
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...
10년 초과 전
문제를 풀었습니다
Get input and output variable names
Given a string representing a function header, return the variable names used for the inputs and outputs. For example if inp...
10년 초과 전
문제를 풀었습니다
Return elements unique to either input
Given two numeric inputs a and b, return a row vector that contains the numbers found in only a or only b, but not both. For ex...
10년 초과 전
문제를 풀었습니다
GJam 2014 China Rd B: Sudoku Checker
This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p0 GJam 2014 China Sudoku>. Large Cas...
10년 초과 전