How to hold different constellations using scatterhistogram?
11 views (last 30 days)
I hope the title is explicit enough, does anyone have an idea?
Thanks in advance.
Example of code:
% signal vector
X = rand(1,1e3)+1i*rand(1,1e3);
% power in signal
% noise of variance power in signal/10
B = PX/10*(randn(1,1e3)+1i*randn(1,1e3));
% signal + noise
Y = X+B;
Adam Danz on 29 Jul 2022
Edited: Adam Danz on 29 Jul 2022
scatterhistogram produces a ScatterHistogramChart object within a figure. When you call hold on, an axes is created if it doesn't already exist, and the axes is prepared to accept new objects. scatterhistogram tells you that you cannot assign the ScatterHistogramChart object to the axes.
Remove hold on so scatterhistogram can create the plot in a figure. Scatterhistogram() is not set up to combine two ScatterHistogramChart objects within the same set of axes.