Can you set entries of a table to read-only?
Show older comments
I'm trying to use matlab to save some measurement data, I want to save the data to a table and make certain entries to be read-only such that they can never be overwritten. Is there a function that does this?
1 Comment
dpb
on 11 Apr 2023
No. MATLAB has no constant data class. It shouldn't be hard to ensure your code never addresses given variables, however, but if it's just a value scattered around here and there and other stuff around it is routinely modified, an indexing error would be somewhat more difficult to code against.
Describe the overall situation more in why you have concerns that you might be changing these.
Accepted Answer
More Answers (0)
Categories
Find more on Tables 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!