Clear Filters
Clear Filters

Subscripted assignment dimension mismatch for table variable 'A'.

3 views (last 30 days)
for j=1:1:P
A = raw(strcmp(data,reference),[2, 5, 6, 11:16]);
B=table2cell(A);
T(j,:)=table(B)
end
error: Subscripted assignment dimension mismatch for table variable 'A'.
  1 Comment
Walter Roberson
Walter Roberson on 7 Sep 2019
If the strcmp does not have exactly one true result then you get a mismatch on the number of rows of the table being assigned to.

Sign in to comment.

Answers (0)

Categories

Find more on Tables in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!