Solved

Split a given string from the first instance of a given character

A simple operation to split a given string into two substrings at the point where the desired character is first found. e.g. ...

5 months ago

Solved

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

5 months ago

Solved

Backslang, odds are you used it at some point in time...

So backslang is a language that can be used to communicate in an easy decode code, if people know the rules of decoding it. Wel...

5 months ago

Solved

NO _________ ALLOWED....

So you're given a sentence where if there is a particular word in the sentence then the output is 1, if it is not there then the...

5 months ago

Solved

Generate a melodic contour string matrix

<http://en.wikipedia.org/wiki/Parsons_code Parsons code> is a surprisingly effective way to identify music by its melodic motion...

5 months ago

Solved

Make a list string

Given a cell string, produce a string separating the items with spaces and commas and with an 'and' preceding the final item, an...

5 months ago

Solved

ABBREVIATION

Abbreviate the given string. Consider Only Capital Letters. EXAMPLE If input is 'Abbreviation of The Given String' then ou...

5 months ago

Solved

How many digits are there?

Input(s) - any string Output(n) - number of digits within string s

5 months ago

Solved

Mean and standard deviation of times in string

Input(t) - cell of strings with times in format 'min:sec.ms' Output([m, s]) - two strings with mean and standard deviation wi...

5 months ago

Solved

Kryptos - CIA Cypher Sculpture: Vignere Decryption

The <http://en.wikipedia.org/wiki/Kryptos Kryptos Sculpture> contains four encypted messages. This Challenge is to Decrypt tw...

5 months ago

Solved

Kryptos - CIA Cypher Sculpture: Vigenere Encryption

The <http://en.wikipedia.org/wiki/Kryptos Kryptos Sculpture> contains four encypted messages. This Challenge is to Encrypt tw...

5 months ago

Solved

Convert Two Character String into a Binary Vector

Given a string "XOXXO" convert it into a binary vector. [1 0 1 1 0] Paul Berglund implemented an optimal method in <http://ww...

5 months ago

Solved

Count letters occurence in text, specific to words with a given length.

Build a function with two input arguments: a string and a word length (number of letters), that outputs a vector of counts of th...

5 months ago

Solved

Is the paranthesis sequence balanced ?

Quantum mechanics and computer science are interested in <http://en.wikipedia.org/wiki/Bra%E2%80%93ket_notation bra-kets>. Today...

5 months ago

Solved

Join Strings with Multiple Different Delimiters

The idea is to form the string S by interleaving the elements of a cell array of strings DELIMITER and another cell array of st...

5 months ago

Solved

Simple Decoder Ring

The stereotypical _decoder ring_ is remembered as a cereal box prize from the 1950s. Kids learned about cryptography by startin...

5 months ago

Solved

Morse Code Generator! Try it!

.... . .-.. .-.. --- . ...- . .-. -.-- --- -. . -.-.-- .-.. . - ... -.. --- ... --- -- . -- --...

5 months ago

Solved

Eliminate Polysyllabics: Long live short words!

Given a string s1, return s2 in which all the words with more than one syllable have been removed. To make things simple, we ...

5 months ago

Solved

Max index of 3D array

Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...

5 months ago

Solved

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

Solved

Reference Index Number

Given a reference set R of elements (each unique but identical in type), and a list V of elements drawn from the set R, possibly...

5 months ago

Solved

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

Solved

Change the sign of even index entries of the reversed vector

change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...

5 months ago

Solved

Set a diagonal

Given a matrix M, row vector v of appropriate length, and diagonal index d (where 0 indicates the main diagonal and off-diagonal...

5 months ago

Solved

Create a vector whose elements depend on the previous element

The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

5 months ago

Solved

Finding peaks

Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...

5 months ago

Solved

Implement a bubble sort technique and output the number of swaps required

A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...

5 months ago

Solved

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

5 months ago

Solved

Unique values without using UNIQUE function

You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...

5 months ago

Solved

Decimation - Optimized for speed

This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will b...

5 months ago