필터 지우기
필터 지우기

implay() -- Properties

조회 수: 8 (최근 30일)
Simon Hehenberger
Simon Hehenberger 2017년 10월 2일
댓글: Lea Corbova 2020년 11월 6일
Hi. I am using the command implay() to view simulation steps of a two dimensional ftdt method and I am using the following code:
h=implay(permute(Hz,[2 1 3]),40);
h.Visual.setPropertyValue('UseDataRange',true);
h.Visual.setPropertyValue('DataRangeMin',-1);
h.Visual.setPropertyValue('DataRangeMax',1);
h.Visual.ColorMap.Map = jet(256);
I am setting the properties of the colormap but when I the "Movie Player" Gui opens I have to click on Tools->Colormap and OK so that the settings are applied. I don't have to manually hack in the properties I want (they are already configured), I just have to click OK.
Does anybody have an idea how I can automate this step?
kind regards, Simon
  댓글 수: 1
Lea Corbova
Lea Corbova 2020년 11월 6일
Maybe you need to create a start up callback function for setting h.Visual.ColorMap.Map = jet(256);
Or maybe this, can be helpful: h=implay(permute(Hz,[2 1 3]),40,'ColorMap',jet);

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

답변 (1개)

LiquidPhD
LiquidPhD 2018년 7월 12일
It is a bit late, unfortunately, but I think that this may work?
h.Visual.ColorMap.MapExpression = 'jet'
  댓글 수: 1
Jakub Kedzierski
Jakub Kedzierski 2020년 10월 30일
Unfortunately it doesn't.

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

카테고리

Help CenterFile Exchange에서 Run Multiple Simulations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by