我希望"情节"和" gscatter"在同一个子情节中我使用hold ...但它没有工作,这是我的代码:
figure('Name','Different Group of Users','NumberTitle','on', 'Position', [130 150 570 510]);
subplot(2,2,1)
x_1 = 0 : 300;
y_1 = theta * x_1;
gscatter(X1, Y1, B, '','xos');
xlabel('time');
ylabel('number of members-seed1');
hold on;
plot(x_1, y_1);
hold off;