Surface plot

Home Forums Matlab Surface plot

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  cK 8 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #596

    Aero123
    Participant

    I have 3 matrices

    time= 50×40000
    distance=1×50
    velocity=50×40000

    So if I consider time to be on y-axis, distance to be on x axis, How can I make a surf plot for velocity ?

    #597

    cK
    Keymaster

    If distance too were a 50x40k matrix or if time were a 1x40k vector, answer is surf(distance,time,velocity). If time was created from a vector using meshgrid, you may pick one row (or a column depending on which is incrementing) and substitute it for time in surf() as mentioned.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.