The version of my MatLab is 2016b.
I found that there is a “dipole.m” at /Winner Channel Model ,while there is also a “dipole.m” at /%MATLAB PATH%/toolbox/antenna/antenna/dipole.m” . So, there will be a confilct.
When we run help dipole in the command window, it show the usage of “dipole.m” belong to Matlab rather than /Winner Channel Model/dipole.m
Then, I run the code on my friend’s Matlab(2013b),there is no problem. I also try to run help dipole, but it shows that there is no function named dipole.
So, my suggestion is to use Matlab with a lower version.