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!