If ‘np’ is 0 (the cell array is empty), the loop is satisfied at the outset and never iterates. If ‘np’ is 1, the loop iterates one time, then stops.
Determine what ‘np’ is in order to solve this. Fixing that problem may be more involved.
.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!