MATLAB Solving MATLAB Surf Plotting Problems

  • Thread starter Thread starter dooleygav
  • Start date Start date
  • Tags Tags
    Matlab
AI Thread Summary
The discussion centers around issues with plotting a surface from a matrix of dimensions between 100 and 1000 rows by 3 columns (x, y, z). The user is attempting to create a surface plot using the 'surf' command but is encountering unexpected results, suggesting that the matrix may need to be sorted or ordered in a specific way. The user notes that the data appears as a perfect plane when using other plotting methods, such as displaying circles with 'o'. Key questions raised include the need for matrix ordering and the specific commands being used for plotting.
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: 482
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'
 

Similar threads

Replies
8
Views
2K
Replies
1
Views
2K
Replies
32
Views
4K
Replies
5
Views
3K
Replies
5
Views
2K
Replies
4
Views
2K
Replies
2
Views
3K
Replies
1
Views
2K
Back
Top