Plotting in matlab

  • Thread starter ppmko
  • Start date
  • #1
11
0

Homework Statement



I have 4 rows of data for a single entity in excel file

Homework Equations


i want to plot all the 4 rows in a single figure in matlab


The Attempt at a Solution


i know how to import the excel data but can find a figure or a function where i can plot these 4 rows in a single circle. scatter plot looks odd too clumsy. is there anything better
 

Answers and Replies

  • #2
MATLABdude
Science Advisor
1,655
4
Sorry, I'm unclear of what you're asking here.

Are you attempting to plot a pie chart?

Or are you trying to plot several data sets on the same graph?
 
  • #3
11
0
I have 4 sets of data of points with x,y,z coordinates in an excel file
I want to plot all the data points in one plot
and I want all these points to be inside a circle.
 
  • #4
MATLABdude
Science Advisor
1,655
4
I have 4 sets of data of points with x,y,z coordinates in an excel file
I want to plot all the data points in one plot
and I want all these points to be inside a circle.
Well, you can plot points in 3D in MATLAB using the plot3 function:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/plot3.html

I don't understand what you mean by plotting the points inside a circle, however. Unless you mean that the points are coordinates of a circle in 3D space. Otherwise, they'll just be a bunch of random points in 3D space.
 
  • #5
11
0
Yes these are coordinates of points inside the circle. I know plot3 but that just creats circle. i want these coordinates inside the circle.
 
  • #6
MATLABdude
Science Advisor
1,655
4
Ah, I think I see. You want to only plot the data points, and not have MATLAB automatically join these points together? Well, you can do that just by changing some of the LineStyle properties:

http://www.mathworks.com/access/helpdesk/help/techdoc/creating_plots/f6-20079.html#f6-26386 [Broken]
 
Last edited by a moderator:

Related Threads on Plotting in matlab

  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
1
Views
564
  • Last Post
Replies
5
Views
2K
  • Last Post
Replies
1
Views
870
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
10
Views
10K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
1
Views
9K
  • Last Post
Replies
6
Views
659
  • Last Post
Replies
2
Views
1K
Top