Error trying to change char value, too many inputs
Show older comments
I have a data structure, and I'm trying to replace a char value within it.
I'm using the following code:
raw(subj,1).stimulus.values{1,1}.name=order{1};
If I run either side of this on its own, I get a single string of class char in return.
But if I run the whole thing, I get the following error:
Error using strcmp
Too many input arguments.
Error in Dictionary/subsasgn (line 233)
if strcmp(s.type,'()')
But I'm trying to replace a single string with another single string. How is this too many arguments?
What am I doing wrong?
4 Comments
Walter Roberson
on 1 Sep 2022
I would ask if you are using r2022b beta instead of r2021b?
Henry Brice
on 1 Sep 2022
Walter Roberson
on 2 Sep 2022
R2021b does not have any class named Dictionary that I can recall. You are invoking an assignment method for a class named Dictionary
Henry Brice
on 2 Sep 2022
Accepted Answer
More Answers (0)
Categories
Find more on Characters and Strings 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!