i wrote this code
array = phased.ULA('NumElements',2,'ElementSpacing',0.5);collector = phased.Collector('Sensor',array,... 'PropagationSpeed',physconst('LightSpeed'),... 'OperatingFrequency',3e8,'Wavefront','Plane');x =[1 -1 1 -1]';y = collector(x,[45;0])
according to matlab example in my matlab but i got this error: Array formation and parentheses-style indexing with objects of class 'phased.Collector' is not allowed. Use objects (of class 'phased.Collector' only as scalars or use a cell array.) why?
Best Answer