필터 지우기
필터 지우기

more channel plot color

조회 수: 2 (최근 30일)
Margareta Drozdikova
Margareta Drozdikova 2018년 2월 26일
댓글: Margareta Drozdikova 2018년 2월 27일
Hi, I am plotting more channel signal. It works, but if I use slider, the color of channel changes, but I want that color of channel will be the same in whole time. If I use cla(handles.axes1,'reset'), the color is the same, it does not change, but white axes appears after each time I use slider. Can you help me with this problem? thanks

답변 (1개)

Sandip Kulkarni
Sandip Kulkarni 2018년 2월 26일
You can create your own color channel signal by specifying exact color specification. For example, for green, instead of 'g', use [0 1 0]. For any intermediate color, you can play with the [r g b] color indices. See https://www.mathworks.com/help/matlab/ref/colorspec.html for details.
  댓글 수: 1
Margareta Drozdikova
Margareta Drozdikova 2018년 2월 27일
Thanks. I solved it. I have written, that if nomber of channel is odd, than color is red, and if it is even, color is blue. Ant it works thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by