Array filter and store into different variables using for loop

조회 수: 1 (최근 30일)
Kartavya
Kartavya 2014년 9월 24일
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