- I commented out result1 = munkres(result); since munkres is missing
- The line data2(fin1,5)=P2; throws this warning
how to re-assign variable within for loop
7 views (last 30 days)
Show older comments
karishma koshy on 17 Aug 2019
Edited: karishma koshy on 30 Aug 2019
Two tables are created within a for-loop. data1 and data2 are tables that are both created within the first iteration of the i-loop. Then for second iteration i want to pass data2 of first iteration to data1 to do similar operation.
right now im getting only the last iteration value in table.
per isakson on 18 Aug 2019
A long shot. Replace
if i == 0
table = data1;
table = [table;data2]; %#ok<AGROW>
data1 = data2;
Warning: The new variables being added to the table have fewer rows than the table. They have been extended with rows containing default
> In tabular/subsasgnParens (line 364)
In tabular/subsasgn (line 61)
In cssm (line 39)
More Answers (0)
Find more on Cell Arrays 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!