2016-08-09 24 views
0

私はいくつかのイベントが発生する場所を特定するために、MATLAB GUIのスライダーの一部分を色付けしようとしています。Matlab GUIスライダーで複数の背景色を導入する

set(handles.slider,'backgroundcolor','red'); 

誰もが背景色のほんの一部を変更する方法を知ってい:私はスライダーのCOMPLETE背景色を変更するためにコマンドがあることを知っています。

ありがとうございました。

+2

たい行の値をプロットする:最後に、私は次のようなタイムライン軸のプロットでの検出を作成しました。これらのイベントを示すためにイメージなどを使用する方がよいでしょう。 – Suever

答えて

1

ありがとうございました。私のやり方ではできないようです。 it can be seen in the right down part

handles.ax=axes('NextPlot','add',...   %get the axes where the detections will be plotted for an easy finding of the interference 
     'DataAspectRatio',[1 1 1],... %# match the scaling of each axis, 
     'XLim',[0 (handles.dataLength-20000)*(1/handles.fs)*(1e3)],...    %# set the x axis limit, 
     'YLim',[0 eps],...    %# set the y axis limit (tiny!), 
     'Color','none',... 
     'Position',[0.02 0.35 0.96 1]); 
    set(handles.ax,'Parent',handles.detectAx);axes(handles.ax); %get the axes where the plot will be made 

最後に、あなただけのHÅVETあなたはあなたがすることはできません

+0

あなた自身の答えを受け入れる;)。 –

関連する問題