Compiled Function trying to access non-existent @tabular\hasvars.m method (matlab 2020a)

3 views (last 30 days)
We are having an issue with a strange console output when we run compiled matlab functions after upgrading to 2020a.
The warning/error reads:
Failed to open file 'D:\Program Files\MATLAB\R2020a\mcr\toolbox\matlab\datatypes\tabular\@tabular\hasvars.m'. Details: 'File stream is closed. The following flags are set: failbit.'
Checking the @tabular class definition confirms there is no "hasvars.m" method. However checking the 2019b release code shows this method is absent there too.
Even more strangely this warning/error is only raised when the functions are compiled, and the functions run correctly whether the code is compiled or uncompiled (at least as far as we are able to tell).
Is this message an issue we should be worried about, or can we safely ignore it (as it doesn't seem to impact the code's operation)?

Accepted Answer

Eric Sofen
Eric Sofen on 25 Feb 2021
I looked into that warning, and you can safely ignore it. It is also not present in R2020b.

More Answers (0)


Find more on Loops and Conditional Statements 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!

Translated by