I have 165545*1 double and 1*351 double variables. I want to put 165545 * 1 on y axis and 1*351 on x axis using plot(x,y) or scatter(x,y).
我有165545 * 1双和1 * 351双变量。我想在y轴上放置165545 * 1,在x轴上放置1 * 351,使用绘图(x,y)或散射(x,y)。
1 个解决方案
#1
1
You can select random x' to build xi vector with same number of elements as y:
您可以选择随机x'来构建具有与y相同数量元素的xi向量:
idx=randi([1,length(x)],1,length(y));
xi=x(idx);
scatter(xi,y)
#1
1
You can select random x' to build xi vector with same number of elements as y:
您可以选择随机x'来构建具有与y相同数量元素的xi向量:
idx=randi([1,length(x)],1,length(y));
xi=x(idx);
scatter(xi,y)