MATLAB now supports non-numeric matrix multiplication!
Latest activity Reply by cui,xingxing
on 21 Feb 2025 at 1:09
Check out the result of "emoji matrix" multiplication below.
- vector multiply vector:
a = ["😁","😁","😁"]
b = ["😂";
"😂"
"😂"]
c = a*b
- matrix multiply matrix:
matrix1 = [
"😀", "😃";
"😄", "😁"]
matrix2 = [
"😆", "😅";
"😂", "🤣"]
resutl = matrix1*matrix2
enjoy yourself!
3 Comments
Sign in to participate
😀
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!