1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Plotting in matlab

  1. Jan 21, 2009 #1
    1. The problem statement, all variables and given/known data

    I have 4 rows of data for a single entity in excel file
    2. Relevant equations
    i want to plot all the 4 rows in a single figure in matlab

    3. 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
  2. jcsd
  3. Jan 23, 2009 #2


    User Avatar
    Science Advisor

    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?
  4. Jan 26, 2009 #3
    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.
  5. Jan 26, 2009 #4


    User Avatar
    Science Advisor

    Well, you can plot points in 3D in MATLAB using the plot3 function:

    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.
  6. Jan 27, 2009 #5
    Yes these are coordinates of points inside the circle. I know plot3 but that just creats circle. i want these coordinates inside the circle.
  7. Jan 27, 2009 #6


    User Avatar
    Science Advisor

    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: May 3, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Plotting in matlab
  1. Matlab plot (Replies: 10)

  2. Plot in matlab (Replies: 1)

  3. Matlab Plots (Replies: 2)

  4. Matlab, plot (Replies: 5)

  5. Matlab plots (Replies: 1)