MATLAB Answers

0

error --> Brace indexing is not supported for variables of this type.

Asked by saman zahiri rad on 18 May 2018
Latest activity Commented on by Jan
on 22 May 2018

Hi Everyone, I have got this error ''Brace indexing is not supported for variables of this type.'' Actually, I don't know what does mean?

Thanks for your help!

  2 Comments

@saman zahiri rad: please show the complete error message. This means all of the red text.

Thanks for your reply. because of this :

Error in new_report_data (line 1212) label_0 = [GroupingValue_1{g},' =(',num2str(GroupingValue_unique),')'];

Sign in to comment.

1 Answer

Answer by Guillaume
on 22 May 2018
 Accepted Answer

What the error message means is simple, you cannot use {} to index your GroupingValue_1 because for that type of variable, {} indexing has no meaning.

It looks like your code is expecting GroupingVariable to be a cell array. It is not. You'll have to find earlier in your code why that is not the case.

  2 Comments

+1. I've removed my redundant answer.

Sign in to comment.