The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: scatter3 (x,y,z) error
Replies: 1   Last Post: Jul 25, 2013 2:19 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 1
Registered: 7/25/13
scatter3 (x,y,z) error
Posted: Jul 25, 2013 12:57 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Can someone help im trying to create a simple scatter3 (x,y,z) plot but I keep getting this error:

??? Error using ==> scatter3 at 63
X, Y and Z must be vectors of the same length.

My x,y,z were imported from excel but they all have 30 columns and 185 rows of data so they are the same length. I do have some NaN's in there but I tried changing them to 0's and then 1's but still getting the same error. So it wasn't that.

Im relatively new to Matlab so im not sure what im doing wrong. I did the same thing with plot3 (x,y,z) and it worked fine but I want scatter i.e. points rather than lines.

If someone could point me in the right direction that would be very useful.


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.