GUI imagesc not working

11 ビュー (過去 30 日間)
Sophie Lis
Sophie Lis 2019 年 2 月 17 日
回答済み: Cris LaPierre 2019 年 4 月 9 日
I am using MATLAB to run a behavioral analysis GUI based on LFP recorded from mice. However, when I am loading up the screen I get an issue with the plot as shown in the attached figure. It is happening in this line:
imagesc(handles.D.pX,( handles.D.F(1:max_LFP_y)),10*log10(abs(handles.D.P(1:max_LFP_y,:))));
What could be going wrong?
  1 件のコメント
Kevin Chng
Kevin Chng 2019 年 2 月 22 日
may be you can check back the ui design, is that any component blocking the plot/axes?

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

回答 (1 件)

Cris LaPierre
Cris LaPierre 2019 年 4 月 9 日
Need some more details about your variables if you want help.
Are you seeing any error messages? Also, what is the size of
  • handles.D.pX
  • handles.D.F(1:max_LFP_y))
  • 10*log10(abs(handles.D.P(1:max_LFP_y,:)))
Some things to look into
  • do you need to specify a column for handles.D.F?
  • You are including all columns of handles.D.P. Is that intentional?
If the plot is already created and you are adding this image to it, you probably need to specify the axis to plot into.
imagesc(ax,___)
Without that, it will create a new axes in your figure, which would also explain what you are seeing.
If handles.D.px is your axes handle, you don't have enough inputs.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by