Someting wrong with cdfx write function
이전 댓글 표시
I just run my example code- like
cdfxObj = cdfx("TEST.cdfx");
a = getValue(cdfxObj, "abcComponent.DEF"); % a == Map [8, 16]
a.PhysicalValue = ones(8,16);
setValue(cdfxObj, "abcComponent.DEF", a);
a_1 = getValue(cdfxObj, "abcComponent.DEF");
write(cdfxObj, "Test.cdfx");
cdfxObj_New = cdfx("Test.cdfx");
b = getValue(cdfxObj_New, "abcComponent.DEF");
but a.PhysicalValue is not equal with b.
b only update [1,:] and other elements are same before setValue function. (a_1 is equal with a.)
I think there is Matlab error that a.PhysicalValue's real size is [1, 8*16] but it recognize [8,16] (or only display)
Is there any solution or Am I misunderstanding something?
In addition, othr variable(scalr, axis, curve...) work well.
댓글 수: 4
Angelo Yeo
2024년 2월 26일
Can you share the "cdfx" and "cdf" file so that others can reproduce the issue? You can use the paperclip button to attach files.
영준
2024년 2월 26일
setValue()를 사용할때 내부적으로 예상치 못한 동작이 일어나는것같은데 reshape로 명시적 재조정을 통해서 사용해보시는건 어떨까요 그외의 문제는 기술적지원이 필요할것같습니다
수영 장
2024년 2월 26일
채택된 답변
추가 답변 (1개)
Kilsu Kim
2024년 2월 29일
0 개 추천
해당 이슈는 R2023b Update 7에서 개선되었습니다.
카테고리
도움말 센터 및 File Exchange에서 View and Analyze Simulation Results에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!