Mainly a note for myself as I kept getting the syntax wrong.
To generate a nice button that opens your control input/output matrix, use this script form Ryan, Jeff & co.
python3 /opt/rtcds/userapps/release/cds/common/scripts/generate_KisselButton2024.py --bw 10 --bh 10 --dl "OUTMTRX_Y" --sn "IMC_WFS_OUTMATRIX_Y" 5 5 "H1:IMC-OUTMATRIX_Y" > IMCJAC_OUTMATRIX_Y.adl
Here bw is button width, bh is button height, dl is the label for the button (OUTMTRX_Y), "IMC_WFS_OUTMATRIX_Y" is the name of the file opened by the button, "H1:IMC-OUTMATRIX_Y" is the channel name prefix of your matrix in the simulink model, and IMCJAC_OUTMATRIX_Y.adl is the file I saved my button in.