Index exceeds matrix dimensions when using scatterplot
显示 更早的评论
Hi everyone,
I am trying to do some data exploration and keep getting an "Index exceeds matrix dimensions." error when trying to do a scatterplot.
My problem has a vector with 100000 columns but I tried with this simple example and get the same error.
x = [1,2,3,4,5,6,7,8,9]
y = rand(1,9)
scatter(x,y)
Apologies in advance for the likely very simple thing that I am missing but can't think of what could be the issue when looking at the scatter() documentation.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!