Hi
What is the Matlab Property Name for a number (double)
example
set(HHH,'color','r');
instead of color I want to set a variable with number

댓글 수: 2

Andrew Newell
Andrew Newell 2012년 1월 26일
Properties may be set to char, double or other types, but they are not in themselves names for a type. What is HHH? A graphics handle?
koko kinder
koko kinder 2012년 1월 26일
HHH is a variable initialized to 0 (HHH=0)
and I whant to change its value using 'user data' defined array.

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

 채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 26일

0 개 추천

set() cannot be used to change numbers that are of any of the built-in numeric types (e.g., uint8, double, logical), and there is no UserData property for any of those numeric classes.
Also, for future reference, those numeric classes cannot have Properties, and no dynamic properties can be set for them.

추가 답변 (1개)

the cyclist
the cyclist 2012년 1월 26일

1 개 추천

red = [1 0 0];
set(HHH,'color',red)

댓글 수: 1

koko kinder
koko kinder 2012년 1월 26일
Sorry sir,
you understand me in different way, maybe my question is confusing, but what I meant is that I need the property name for setting a real number like 30 or 30.5 (double number or integer).

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

카테고리

도움말 센터File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by