MATLAB Answers

yes and or nod?

1 ビュー (過去 30 日間)
Lard Guard
Lard Guard 2018 年 5 月 3 日
Commented: 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 件のコメント

表示 1 件の古いコメント
KSSV
KSSV 2018 年 5 月 3 日
Dude..you need reconsider your code.......
fx = 6.*pi.*rho_f*v.*R.*(u-u_p);
u_p is of size 1600*1.
Stephen Cobeldick
Stephen Cobeldick 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

サインイン to comment.

採用された回答

Yuvaraj V
Yuvaraj V 2018 年 5 月 3 日
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 件のコメント

サインイン to comment.

More Answers (0)

サインイン してこの質問に回答します。


Translated by