Solving MATLAB Surf Plotting Problems

  • Context: MATLAB 
  • Thread starter Thread starter dooleygav
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
SUMMARY

The discussion focuses on solving surface plotting issues in MATLAB using the surf command. The user is working with a matrix containing between 100 and 1000 rows and 3 columns representing x, y, and z coordinates. Key questions raised include whether the matrix needs to be sorted and the importance of matrix dimensions for successful plotting. The user observes that the surface plot does not represent a plane as expected, while simple plots with circles display correctly.

PREREQUISITES
  • Understanding of MATLAB syntax and commands
  • Familiarity with matrix dimensions and structure
  • Knowledge of surface plotting techniques in MATLAB
  • Basic grasp of 3D visualization concepts
NEXT STEPS
  • Research MATLAB's surf command documentation for proper usage
  • Learn about sorting matrices in MATLAB to prepare data for plotting
  • Explore MATLAB's meshgrid function for creating coordinate grids
  • Investigate troubleshooting techniques for 3D plots in MATLAB
USEFUL FOR

This discussion is beneficial for MATLAB users, data analysts, and engineers involved in 3D data visualization and surface plotting. It is particularly relevant for those encountering issues with matrix formatting and plotting commands.

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: 495
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 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K