MATLAB Answers

How can I set multiple text descriptions' colours at one time

10 views (last 30 days)
Greer Gray
Greer Gray on 28 Nov 2018
Commented: madhan ravi on 29 Nov 2018
Suppose I have
xt = [1 2 3 4];
yt = [1 2 3 4];
str = {'one','two','three','four'};
tt = text(xt,yt,str);
xlim([0 5])
ylim([0 5])
How do I set 1 and 3 to the color red together without a loop
i.e. tt([1 3]).Color = 'r'

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by