Plotting Excel Data in Matlab: How to Combine Multiple Rows into One Figure

  • Thread starter Thread starter ppmko
  • Start date Start date
  • Tags Tags
    Matlab Plotting
Click For Summary

Discussion Overview

The discussion revolves around plotting multiple rows of data from an Excel file in MATLAB, specifically focusing on visualizing four sets of 3D coordinates within a circular region. The participants explore different plotting methods and clarify the requirements for the visualization.

Discussion Character

  • Homework-related
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant states they have four rows of data for a single entity in an Excel file and seeks to plot these in a single figure in MATLAB.
  • Another participant questions whether the original poster is trying to create a pie chart or plot several datasets on the same graph.
  • A participant clarifies that they have four sets of data points with x, y, z coordinates and want to plot all points in one plot, specifically inside a circle.
  • There is a suggestion to use the plot3 function in MATLAB for 3D plotting, but there is confusion regarding the requirement to plot points inside a circle.
  • One participant confirms that the coordinates are indeed meant to be within a circle and expresses that they want to plot these coordinates without connecting them with lines.
  • A later reply suggests adjusting the LineStyle properties in MATLAB to achieve the desired plotting style.

Areas of Agreement / Disagreement

Participants have not reached a consensus on the best method to visualize the data points within a circle, and there is some confusion regarding the interpretation of "inside a circle." Multiple approaches are being discussed without a clear resolution.

Contextual Notes

There are unresolved questions about the specific requirements for the plot, such as the definition of "inside a circle" and how to represent the data points without connecting them. The discussion also reflects varying interpretations of the plotting methods available in MATLAB.

ppmko
Messages
9
Reaction score
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
 
Physics news on Phys.org
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?
 
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.
 
ppmko said:
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.
 
Yes these are coordinates of points inside the circle. I know plot3 but that just creats circle. i want these coordinates inside the circle.
 
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
 
Last edited by a moderator:

Similar threads

Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 14 ·
Replies
14
Views
9K