Unrecognized property 'Label' for class ??

Hello everyone,
I'm trying to change the value for the label (0,0) and I've tried to get the value by
>> Aspen.Application.Tree.FindNode("\Data\Components\Specifications\Input\TYPE").Elements.Label(0,0)
ans =
'AAA'
However, when I tried to assign the value by
>> Aspen.Application.Tree.FindNode("\Data\Components\Specifications\Input\TYPE").Elements.Label(0,0)='BBB'
Unrecognized property 'Label' for class 'Interface.89E81F60_019A_11D0_9BE7_0000C05375D5'.
This is strange because similar things have been performed by using the VBA, which are coded as,
Dim myNode As Happ.IHNode = mySim.Tree.Data.Components.Specifications.Input.Elements("TYPE")
myNode.Elements.Label(0, 0) = "BBB"
And it went well. Any help/ suggestion would be very helpful. Thank you!

댓글 수: 1

Walter Roberson
Walter Roberson 2018년 12월 22일
Generally speaking:
Consider that in MATLAB, the expression A.B could be accessing standard property B of object A, but it could also be accessing method B of object A, and it could also be accessing a dependant property B of object A.
Therefore even though you can access A.B and get a result, it is not always the case that you can assign to A.B (even neglecting the case where a standard property has been marked as not permitting write access.)

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

답변 (1개)

zuqian wu
zuqian wu 2019년 8월 3일

0 개 추천

I've met the same problem with you, so, have you found the answer? I need help, thanks.

댓글 수: 1

RAN
RAN 2023년 4월 14일
Have you find the answer? me too, I need help!!!!! thanks.

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

카테고리

도움말 센터File Exchange에서 Labels and Annotations에 대해 자세히 알아보기

제품

릴리스

R2018b

질문:

2018년 12월 22일

댓글:

RAN
2023년 4월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by