Array filter and store into different variables using for loop
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!