yes and or nod?

1 次查看(过去 30 天)
Lard Guard
Lard Guard 2018-5-3
评论: Rena Berman 2019-12-12
Im trying to make a graph of the locations of particles as they change over time but whenever I use scatter it gives me the error X and Y must be vectors of the same length Im sure its something simple, im not that good at matlab
  4 个评论
Stephen23
Stephen23 2019-11-15
Original question by Joseph Stocken "I'm trying to make a graph of the location of a particle but it keeps giving me the error X and Y must be the same length":
Im trying to make a graph of the locations of particles as they change over time but whenever I use scatter it gives me the error X and Y must be vectors of the same length Im sure its something simple, im not that good at matlab
Képkivágás.PNG
Rena Berman
Rena Berman 2019-12-12
(Answers Dev) Restored edit

请先登录,再进行评论。

采纳的回答

Yuvaraj Venkataswamy
In your code, X and Y are not vector. It is matrix with size 1600 x 7. You can use below comment.
if true
scatter(Xx(:,7),Xy(:,7))
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by