xcpA2L error: Error using numel Bad subscripting index.
4 views (last 30 days)
Show older comments
Hello I'm trying to run xcpA2L("test.a2l") on MATLAB 2021a but it keeps throwing this error. I can parse other ".a2l" files just fine. The only difference I can think of is that this new "test.a2l" is generated by buidling software from MATLAB 2023a and the ones before were from MATLAB 2018b. Not sure if I'm making the right correlation here that it's not compatible. I tried running xcpA2L("test.a2l") on MATLAB 2023a and it does work.
0 Comments
Answers (1)
Raghava S N
on 7 Aug 2024
Hi Shannon,
The issue you are facing seems to be due to a version mismatch in the A2L version. From the MATLAB R2021b release onwards, “xcpA2L” executes faster and produces a “xcp.A2L” object that complies with A2L version 1.7.1. Refer to this link for more information about “xcpA2L” in MATLAB R2021b - https://www.mathworks.com/help/releases/R2021b/vnt/ug/xcpa2l.html?searchHighlight=xcpA2L&s_tid=doc_srchtitle. The “.a2l” files generated by the MATLAB R2021a release and previous releases use A2L version 1.6.x.
For more information, refer to the release notes of MATLAB R2021b - https://www.mathworks.com/help/vnt/release-notes.html#mw_d6684789-5c20-4450-8563-9985c8b6a309.
Also, consider upgrading to MATLAB R2021b or newer releases to take advantage of the new parser that supports up to A2L version 1.7.1.
See Also
Categories
Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!