How to choose color in bsxfun?
1 次查看(过去 30 天)
显示 更早的评论
Hey Matlab expert,
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... :)
0 个评论
回答(1 个)
Image Analyst
2013-9-28
You can redefine the default color order to whatever you want. See my demo, attached below.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!