Created
September 25, 2021 22:14
-
-
Save kevduc/42f703d552ec48384f81440d6ab65413 to your computer and use it in GitHub Desktop.
Wraps the given string in html that colors that text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cprintf(color, string) | |
%CPRINTF wraps the given string in html that colors that text. | |
disp(['<font color="', color, '">', string, '</font>']); | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment