how to create an array of pedestrians using backsactterpedestrian?

Hi,
the function 'backscatterpedestrian' creates a pedestrian object, if I want to create N pedestrians, how should I create an pedestrian array? Many thanks!

 Accepted Answer

Use repmat() to create an array
N = 10;
A = repmat(backscatterpedestrian, 1, N);

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!