Concatenating arrays using matlab guide
8 次查看(过去 30 天)
显示 更早的评论
I am using MATLAB GUIDE to prompt the user to input some sound barrier dimensions and position it in a 3D space. The user has the possibility of adding a number of barriers and would like the values entered to be saved in an array and with each barrier insertion the new values will be added to those entered previously. I am using the script below, the only problem is that the values entered for the first barrier are not being listed. Any help please?
Barriers = [];
BarrierSpecs = [varBarrierHeight, varBarrierWidth, varBarrierLength, varBarrierX, varBarrierY, varBarrierZ];
Barriers = vertcat(Barriers, BarrierSpecs)
The above is in a callback function
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!