MATLAB Central Discussions - Join the conversation!
Main Content

Results for


    Check out the result of "emoji matrix" multiplication below.
    • vector multiply vector:
    a = ["😁","😁","😁"]
    Warning: Function mtimes has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
    Warning: Function mtimes has the same name as a MATLAB built-in. We suggest you rename the function to avoid a potential name conflict.
    a = 1x3 string array
    "😁" "😁" "😁"
    b = ["😂";
    "😂"
    "😂"]
    b = 3x1 string array
    "😂" "😂" "😂"
    c = a*b
    c = "😁😂😁😂😁😂"
    d = b*a
    d = 3x3 string array
    "😂😁" "😂😁" "😂😁" "😂😁" "😂😁" "😂😁" "😂😁" "😂😁" "😂😁"
    • matrix multiply matrix:
    matrix1 = [
    "😀", "😃";
    "😄", "😁"]
    matrix1 = 2x2 string array
    "😀" "😃" "😄" "😁"
    matrix2 = [
    "😆", "😅";
    "😂", "🤣"]
    matrix2 = 2x2 string array
    "😆" "😅" "😂" "🤣"
    resutl = matrix1*matrix2
    resutl = 2x2 string array
    "😀😆😃😂" "😀😅😃🤣" "😄😆😁😂" "😄😅😁🤣"
    enjoy yourself!
    Go to top of page