Array filter and store into different variables using for loop
1 次查看(过去 30 天)
显示 更早的评论
Hi, I have an array with multiple columns that I separated into each variable that now contains single column. I then created index filter option and I can filter the array based on certain parameter and exclude out all the other values. The problem I'm having is how can i store the information in multiple variables for later usage using for loop.
for u = 1 : Zr
iz(u) = find(r(:)<div*u); dispx(u) = Qxrs(iz(u)); dispy(u) = Qyrs(iz(u)); X(u) = Xw(iz(u)); Y(u) = Yw(iz(u));
end
So for left side: I want to create index variable iz__ and then based on that index, restore all the values of the array into new variable dispx_, dispy__, X__, Y__. What matlab is stating that I'm trying to store entire array into a single column of x but that is not what I intend to do.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!