Matlab - building an array while looping

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-03-19T22:22:56Z Indexed on 2010/03/19 22:51 UTC
Read the original article Hit count: 158

Filed under:
|

Hello, I have a for loop that loops over one array...

for i=1:length(myArray)

In this loop, I want to do check on the value of myArray and add it to another array myArray2 if it meets certain conditions. I looked through the Matlab docs, but couldn't find anything on creating arrays without declaring all their values on initialization or reading data into them in one shot.

Many thanks!

© Stack Overflow or respective owner

Related posts about matlab

Related posts about array