MATLAB now supports non-numeric matrix multiplication!
Latest activity Edit by cui,xingxing
on 7 Mar 2025 at 0:56
Check out the result of "emoji matrix" multiplication below.
- vector multiply vector:
a = ["๐","๐","๐"]
b = ["๐";
"๐"
"๐"]
c = a*b
d = b*a
- matrix multiply matrix:
matrix1 = [
"๐", "๐";
"๐", "๐"]
matrix2 = [
"๐", "๐
";
"๐", "๐คฃ"]
resutl = matrix1*matrix2
enjoy yourself!
3 Comments
๐
Here's some more fun
erase("๐จโ๐","๐")
replace("๐จโ๐ฆ","๐ฆ","๐ง")
How this works
Let's look at the double representation of the graduate emoji
double('๐จโ๐')
In this case [55357 56424] is the person's face, [55356 57235] is the cap, and 8205 is the zero-width joiner (ZWJ). Let's look at each part separatly.
char([55357 56424])
char([55356 57235])
join(["โค๏ธ", "๐ฅ"])
You can join emojis using addition or character concatenation. Don't forget the ZWJ.
["โค๏ธ" + char(8205) + "๐ฅ"]
Let's have more fun
["๏ธโค๏ธ" + char(8205) + "๐ฅ"]
['๐', char(8205), 'โ๏ธ']
['โค๏ธ', char(8205), '๐ฉน']
['๐ซฑ๐ป', char(8205), '๐ซฒ๐ฟ']
['๐ฆ', char(8205), '๐ฅ']
Here's a table of other emoji combinations. Who can create a polar bear from bear+snow?
Not all emojis are suported!