How to plot the on-off status matrix with elements displayed
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to plot a figure like this with matlab. The elements are presented and marked with differetn colors.

0 Commenti
Risposte (1)
Walter Roberson
il 11 Mag 2022
image() with a colormap with two entries. If you need the labels then text() them into place. You can use find() to get row and column numbers. Remember that row numbers are y coordinates and column numbers are x coordinates.
Vedere anche
Categorie
Scopri di più su Color and Styling in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!