yes and or nod?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Lard Guard
am 3 Mai 2018
Kommentiert: Rena Berman
am 12 Dez. 2019
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 Kommentare
Stephen23
am 15 Nov. 2019
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/248493/K%C3%A9pkiv%C3%A1g%C3%A1s.png)
Akzeptierte Antwort
Yuvaraj Venkataswamy
am 3 Mai 2018
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 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!