phased.freespace channel multiple targets

I'm trying to simulate an environment with multiple target with phased.freespace channel. The signal I used is Linear FMCW signal. But i found this error:
Error using phased.FreeSpace/validateNumberOfPositionPairs (line 231)
Expected input Pos2 to be of size [3 1] when it is actually size [3 28].
Error in phased.internal.AbstractFreeSpace/validateInputsImpl (line 333)
validateNumberOfPositionPairs(obj,x,startLocSize,endLocSize);
Error in FMCWExample_multi_target (line 191)
txsig = channel(txsig,radar_pos,tgt_pos,radar_vel,tgt_vel);
Can anyone give me a hand?

1 Comment

It would be helpful if you can share the code, which has caused this error.

Sign in to comment.

Answers (1)

What are dimensions of your inputs to the object? You may need to match the number of input signal to number or targets.
HTH

Asked:

on 8 Dec 2019

Answered:

on 31 Dec 2019

Community Treasure Hunt

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

Start Hunting!