Effacer les filtres
Effacer les filtres

How to show all martix entries and color some chosen values

1 vue (au cours des 30 derniers jours)
Anastasiya
Anastasiya le 17 Juin 2013
Dear all, I have a matrix with some suspicious entries (say huge numbers). I would like to show each value of an entry and color these suspicious numbers. The main idea is too see all matrix elements (real numbers), for example; [1 1 1;2 2 {100}(in red)]. Thanks!

Réponse acceptée

Angus
Angus le 17 Juin 2013
You can use the built-in fprintf to display red text output in the command window
fprintf(2,'hi there\n')
It is not very versatile though, I think your suspicious numbers would have to be a separate output that the rest of the matrix so it wont be a standard matrix display.

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by