Clear Filters
Clear Filters

Matlab2020b version error - readonly Brace indexing is not supported for variables of this type

2 views (last 30 days)
Hi there,
I am using the 2020b matlab version. Each time, as long as I open a vairable in workspace, I get the error saying: readonly, Brace indexing is not supported for vairables of this type".
This happens in matlab2020b version, but not in 2019b version.
May I know if there is any solution regarding this?
  1 Comment
Walter Roberson
Walter Roberson on 25 Jun 2021
Experiment with
restoredefaultpath; rehash toolboxcache
If the problem disappears then you have some function on your path that is interfering with use of MATLAB library functions. For example, people who have SPM installed can have problems unless they remove a compatibility directory that SPM installs.

Sign in to comment.

Answers (1)

Deepak Meena
Deepak Meena on 2 Jul 2021
Do try the solution provided by the @Walter Roberson in the comments and also explain what exactly you meant by "opening the variables in the workspace".Provide some steps so we can try reproduce the probelm on our end.


Find more on Get Started with MATLAB 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!