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 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by