Skip to main content
Commonmark migration
Source Link

#MATLAB, 13 bytes#

MATLAB, 13 bytes

@(x)[97-x '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

ans('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101

#MATLAB, 13 bytes#

@(x)[97-x '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

ans('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101

MATLAB, 13 bytes

@(x)[97-x '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

ans('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101
edited body
Source Link
Tom Carpenter
  • 4.3k
  • 13
  • 21

#MATLAB, 1513 bytes#

a=@@(x)[97-x '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

aans('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101

#MATLAB, 15 bytes#

a=@(x)[97-x '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

a('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101

#MATLAB, 13 bytes#

@(x)[97-x '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

ans('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101
deleted 1 character in body
Source Link
Tom Carpenter
  • 4.3k
  • 13
  • 21

#MATLAB, 1615 bytes#

a=@(x)char(97[97-x) '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

a('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101

#MATLAB, 16 bytes#

a=@(x)char(97-x)

After running the above, simply call the function with your input string to get the inverted string. For example running:

a('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101

#MATLAB, 15 bytes#

a=@(x)[97-x '']

After running the above, simply call the function with your input string to get the inverted string. For example running:

a('10101110101010010100010001010110101001010')

prints:

01010001010101101011101110101001010110101
Source Link
Tom Carpenter
  • 4.3k
  • 13
  • 21
Loading