How to choose color in bsxfun?

1 回表示 (過去 30 日間)
M G
M G 2013 年 9 月 28 日
コメント済み: Jan 2013 年 9 月 28 日
Hey Matlab expert,
If I have a matrix of x 4 I am using this code to plot in row:
offset = 200; % Can be varied based on the amplitude of the signals
inter_line = (size(data, 2) * offset: -offset : offset);
data_inter_line = bsxfun (@plus, data, inter_line);
figure
plot(data_inter_line)
How can I define a specific color as i wish to each of 4 graphs?
Thank you in advance... :)

回答 (1 件)

Image Analyst
Image Analyst 2013 年 9 月 28 日
You can redefine the default color order to whatever you want. See my demo, attached below.
  1 件のコメント
Jan
Jan 2013 年 9 月 28 日
Nothing is attached here.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by