is it possible aarays in first row and first column of a cell be writen in red or other color?
Mostrar comentarios más antiguos
is it possible, aarays in first row and first column of a cell, be writen in red or other color while seeing .mat of that?
Respuestas (4)
Walter Roberson
el 5 de Sept. de 2011
1 voto
Unfortunately Foreground Color applies to all cells, not selectively.
1 comentario
mohammad
el 5 de Sept. de 2011
Walter Roberson
el 5 de Sept. de 2011
1 voto
Sorry, I did not notice before that you were not using uitable.
It is not possible to color array members in .mat files.
In order to color objects in .xls files, you must be using MS Windows and you must have Excel installed, and you must use COM objects to communicate directly with Excel in order to invoke the Excel commands that would be used to color the cells.
1 comentario
mohammad
el 5 de Sept. de 2011
Harry MacDowel
el 5 de Sept. de 2011
0 votos
I think that has something to do with the display of the data rather than the content of the data.
What I know is, in GUI, you can utilize the uitable format, change the display of the Foreground Color, so that is a certain yes for GUI.
As for the Matlab command window, you would have to alter it using fprintf etc.
There is a very useful command call cprintf on File Exchange and the documentation could be found here: http://undocumentedmatlab.com/blog/cprintf-display-formatted-color-text-in-command-window/
I think it is a good try. Go for it.
mohammad
el 5 de Sept. de 2011
2 comentarios
Harry MacDowel
el 5 de Sept. de 2011
have you tried the cprintf function I suggested?
mohammad
el 5 de Sept. de 2011
Categorías
Más información sobre Migrate GUIDE Apps en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!