How to prevent trimming of characters from visdiff output?

조회 수: 5 (최근 30일)
Jayanth Suresh
Jayanth Suresh 2023년 1월 25일
댓글: Jayanth Suresh 2023년 2월 28일
I have developed a MATLAB app programatically and wanted to compare it with a different version and get a "comparison" output from visdiff for the same. The idea is to parse through the output comparison and add any buttons, tabs or tables programatically since MATLAB merge mode is not very reliable for my case.
When I use
comparison = visdiff('file1.m', 'file2.m');
I do get an output in the form of character array but some of the classes for the components are trimmed out. For eg, matlab.ui.container.Button is trimmed and displayed only as matlab.ui.container.Bu
More examples are shown in the figure.
Are there any available options here to prevent that from happening?
  댓글 수: 4
dpb
dpb 2023년 1월 26일
The latter must be an undocumented change since R2020b...it fails on m-files here, too, so can't see anything except the display version. The comparison report engine is also different for .mlapp and .m files here; only a binary dump shows up for m-files while the enhanced comparison/merge facility is there for appliction files.
Don't guess I can give any further help/advice, sorry...I'm not in position to upgrade at the moment; that's going to have to wait for a completion of current tasks before happening; probably at least another month.
I'd venture it's time to submit official support request; if it's undocumented behavior they may just blow it off, but there may be a workaround they'll help with if it is in an active development mode and beta testing is beneficial on their end, too.
Jayanth Suresh
Jayanth Suresh 2023년 2월 28일
Thanks for the suggestions, I am circling back to this topic to close this out. I did reach out to official support request and this was their reply.
"The behavior you are noticing has been fixed as of MATLAB release R2023a"

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Entering Commands에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by