Solving MATLAB Surf Plotting Problems

  • Context: MATLAB 
  • Thread starter Thread starter dooleygav
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 5K views
dooleygav
Messages
4
Reaction score
0
I have to following problems with my plotting problems:


my matrix is as follows :

x y z
[ ]
its approx 100 rows...


When i try to plot the surface... The following image occurs, does the matrix need ot be sorted or somehting?

It should be a plane...
Thanks.
 

Attachments

  • untitled.jpg
    untitled.jpg
    38 KB · Views: 508
Physics news on Phys.org
what command are you using to plot?

also, what are the dimensions of your matrix that you are plotting?
 
swraman said:
what command are you using to plot?

also, what are the dimensions of your matrix that you are plotting?


the matrix is between 100 & 1000 rows * 3 (x , y, z)


Im using the surf command...

Does the matrix need to be in some kind of order?... It is a perfect plane when i use plots and display circles... using 'o'