I meet the same problem, I saw the help document of function “dipole”
d = dipole(Name,Value) creates a dipole antenna, with additional properties specified by one or more name-value pair arguments. Name is the property name and Value is the corresponding value. You can specify several name-value pair arguments in any order as Name1, Value1, ..., NameN, ValueN. Properties you do not specify retains their default values.
The example is : d = dipole(‘Width’,0.05).
there should be name-value pair arguments.
But int the winnerChannelFactory.m file, the code is
pattern(1,:,1,:) = dipole(Az,TX_pol(1)); pattern(2,:,1,:) = dipole(Az,TX_pol(2));
there is no name in the arguments.
But I don’t know how to solve it right now .