Array filter and store into different variables using for loop
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!