vertcat error while using splitapply
Show older comments
AA = csvread('temp.csv');
YA = unique(AA(:,1));
GA = findgroups(AA(:,1));
SA = splitapply(@max,AA(:,4:13),GA);
AM = [YA SA];
I am trying to get annual maximum value for the given data but i am getting this error while running the code. The code is working perfectly fine for my other station data. Help me
Error using vertcat
Dimensions of arrays being concatenated are not consistent.
Error in splitapply>localapply (line 253)
finalOut{curVar} = vertcat(funOut{:,curVar});
Error in splitapply (line 132)
varargout = localapply(fun,splitData,gdim,nargout);
Accepted Answer
More Answers (0)
Categories
Find more on Data Preprocessing 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!