How to vertically concatenate a 2x1 table output in a loop, to form a 2x(i) table of outputs.
1 次查看(过去 30 天)
显示 更早的评论
Hello all, I have a for loop that matches Unixtime data from many thousands of data points and matches it against a smaller set of Unixtimes for photos from experiments so that i can match crack length against the appropriate Force/displacement data. I am trying to extract the necessary DCBdatapoints in a table but cant vertically concatenate the outputs into a new table. I am quiet new to MATLAB, any help will be greatly appreciated.
for i=1:length(ID)
isMatch = abs(rawdatarray(:,3)- IDnanarrary(i,2)) <= 0.02;
DCBdatapoints = rawdata(isMatch,1:2)
plot (DCBdatapoints,"Displacementmm","ForceMpa","LineJoin","round","Marker","+","LineStyleMode","auto")
hold on
end
hold off
These are my outputs (Only two shown)
I can plot them no bother, i just want to extract the full set of data points in a new table.
DCBdatapoints = 1×2 table
DCBdatapoints = 2×2 table
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!