Plotting Definition and 518 Threads

  1. S

    MATLAB How Can I Store Loop Results in Arrays for Plotting in MATLAB?

    Hello, I am trying to store the results in the form of an array every time the code goes through a loop. This is what my code looks like: for j = 1:100 for i= 1:100 if S(i)==0 if rand < T S(i)= 1; t_inf(i) = j; end...
  2. B

    Plotting a circular vector field

    Homework Statement I'm supposed to sketch the vector field and verify that all the vectors of the following equation have the same length.Homework Equations G(x,y) = \frac{-iy + jx}{\sqrt{x^2+y^2}}The Attempt at a Solution If I start plugging in numbers, for example the point (1,1) into...
  3. T

    How to Sort and Manipulate Data for List Plotting in Mathematica?

    I am importing data as a .dat file into Mathematica and making a list plot. I need to know: a)How to sort the words out of my data? I used to use AllNumeric but that went away with version 6 b)How to switch the axis on my graph? My data is coming in as a pair sequence {1#`,2#`} but I need it...
  4. J

    Solving PDE & Plotting -20 < x < 20, t = 0,1,2,...10

    Homework Statement Hi, so the initial problem was: given \left.\frac{d^{2}u}{dt^{2}} = \frac{d^{2}u}{dx^{2}}} \left.-\infty \leq x \leq \infty \left.u(x,0)=\frac{x}{1+x^{3}} , \frac{du}{dt}(x,0) = 0 Solve the PDE(did this part already) and plot the solution for -20 < x <20 and t =...
  5. J

    Mathematica Need help plotting with mathematica

    Hi, I want to use mathemiatica to predict the spectrum of compounds with different conformers. The input consists of 4 values: frequency (of each vibration and every conformer), Intensity, Polarizability and total energy (of the conformer). I now want to plot the frequency vs the Intensity. 1...
  6. B

    Plotting a Line in 3D from a List of Points

    Hey. Is it possible to plot a line in 3D from one point to another? The source of the points is a list.
  7. C

    Differential Equation - Plotting Phase Plane

    Homework Statement Plot the phase plane of: y(t) = e-6t(2 1) + e-3t(1 -1) Homework Equations The Attempt at a Solution I know it's a sink because \lambda_2 < \lambda_1 < 0. http://img35.imageshack.us/img35/8108/sink.th.jpg but the phase plane in the answer is slanted to...
  8. D

    C/C++ What is the Best C++ Library for Plotting and Graphical Representation of Data?

    I will be making a C++ program for graphical representation of data. The user will import data about for example 4 different objects (some proteins or cells) and the program will plot correlation functions, linear regressions, maps (according to some generalised distance) for these objects. The...
  9. A

    Need help with 3d plotting Vector Field.

    I am in real need for a graphical application with 3d plotting capabilities. I need to plot some particles given their space coordinate. This has been well managed using VMD. But i am clueless how to plot associated velocity vector with particles. So basicall i am looking for to plot velocity...
  10. D

    MATLAB Matlab Plotting of QM double-potential-barrier

    Hey everyone, I have a quantum mechanics/matlab issue. I'm trying to plot the Transmission Coefficient T(E) of a double-potential barrier with barrier width 3nm and spacing 9nm, potential V = 0.5eV and sweeping energy from 0 to 1eV. Using the cascading matrix method where, given a matrix M of...
  11. S

    MATLAB: Separate Points for Plotting

    Hi, I have generated 1000 data points. I have assigned them a class (1 or 0) depending if they are above or below a decision boundary. I want to plot the data on a graph with the class 1 data points in one colour and the class 0 data points in another. any ideasa how I can do this...
  12. S

    MATLAB MATLAB Separate Points for Plotting

    Hi, I have generated 1000 data points. I have assigned them a class (1 or 0) depending if they are above or below a decision boundary. I want to plot the data on a graph with the class 1 data points in one colour and the class 0 data points in another. any ideasa how I can do this...
  13. S

    Plotting Elliptical Orbits for Beginners

    How would you plot the orbits of planets? I know how to calculate velocity and all the other aspects of an obit but I don’t know how to plot elliptical orbits. (This is not homework)
  14. D

    Can MATLAB be used for 3D plotting in calculus work?

    i am learning MATLAB, but have not yet learned anything do do with graphing, but need a program that can plot x.y.z graphs for my calculus work, can someone please help me plot 3d graphs on MATLAB, for example z=x2+2x+y2-y how can i input x,y,z so that MATLAB will give me the surface...
  15. D

    MATLAB Plotting y=x Function in Matlab: Tips for Beginners

    I am new to Matlab and i need to plot a function. However, using y=x as an example it always comes up saying that x is not defined. How do i plot the function without specifying a specific value for x? Graphing y=x is not my real problem. I am used to using TI-83/4 graphics calculators and...
  16. R

    Having trouble plotting this set of data - .

    So: we did an experiment to see if sow bugs liked a dry or a moist environment. We put them in a choice chamber and let them choose between a dry environment and a humid environment. We also did a separate control where we gave them the choice between two identical dry environments. My...
  17. O

    Plotting g = 3 cos (10pi t) Convolved with 4 Impulse (t +0.1) in Matlab

    Homework Statement plot using matlab: g = 3 cos (10pi t) convolved with 4 impulse (t +0.1) Homework Equations The Attempt at a Solution x = -10:0.1:10; u = 3*cos (10*pi*x); v = 4*dirac(x + 1./10); y = conv (u,v); plot (x,y); but i keep getting this error: Error using ==>...
  18. J

    Equation Graphing Software with Zooming & X-Y Readouts

    Hi, Can anyone point me to a good equation graphing program that has zooming and x-y readouts according to crosshair positioning (for estimating values). I have Mathematica 5 which I use for most graphing but it lacks the above mentioned features for simple x-y plotting and graphical...
  19. U

    What is the best method for plotting complex inequalities on the complex plane?

    Trying to plot the set of complex numbers \{z \in C | |z - i| \leq |z-1|\} on the complex plane. I've tried by hand a few values for z, such as z = 1 - 2i, z = 2 + 2i, but the inequality isn't true. How can I determine which values of z are true for this inequality?
  20. L

    Plotting Output Response Curve with Unit Steps: A Matlab Guide

    How do i plot an output response curve when input unit steps are (undamped natural frequency is normalised to 1): damping ration = 0, 0.1, 0.4,0.6,0.8,0.9 1 and 2 1) how do i plot a 2d plot for all curves on same graph. Time scale 0 - 10, steps of 0.2 seconds. 2) How do i make use of a 'for...
  21. W

    Maple Plotting Phase Graphs/Diagrams of PDE's in Maple

    Hi everyone, I believe the term I am looking for is phase diagram. For a oscillating system it is a graph where displacement is on the x-axis and velocity is on the y-axis. My first question is what is the proper name for this type of graph? I had the following simple PDE: ay" + by' + cy...
  22. S

    WMAP Data for l(l+1)Cl/2pi vs. l Plotting

    I'd like to compare some models of mine against results from WMAP. Is there anywhere I can get the data, l(l+1) Cl / 2pi as a function of l? I see plenty of images of the TT, TE power spectra with error bars on them from WMAP, but can't seem to find the data. Ideally I'd like to plot my models...
  23. M

    Mathematica Plotting in a loop in mathematica

    I am trying to solve a system of differential equations and plot solution curves. The differential equations have parameters. I would like to write a loop for these parameters and have the solution curves plot. Here is my code for the solving / plotting. The parameters I want to change...
  24. 1

    How to Plot a Diagonal Line in C?

    this is quite a simple problem,what i am trying to do is plot a line between any two points on my image, i can plot horizontal lines fine. below is the part of my code to for the line... int x1 = 92, y1 = 35, x2 = 150, y2 = 55; //line between two points for (x = x1; x <= x2; x++)...
  25. P

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

    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...
  26. S

    Plot Pseudopotentials: How to do it?

    Hi, I have some generated pseudopotentials, which I have taken them from different sources, one of them octopus. I need to plot the pseudos, can anyone let me know how to do it? Regards, Sara
  27. S

    How to Plot Pseudopotentials from Different Sources?

    Hi, I have some generated pseudopotentials, which I have taken them from different sources, one of them octopus. I need to plot the pseudos, can anyone let me know how to do it? Regards, Sara
  28. maverick280857

    Problem plotting Kronig Penney Model dispersion curves

    To the moderator: I'm not sure if this should go here or in the Computational Physics forum. Please shift it there if you think that's the appropriate place for it. Hi everyone Merry Christmas! I'm writing a computer program in C, to explicitly compute the band structures for a 1D...
  29. P

    Plotting Vehicle Path Based on Accelerometer Readings

    There's a problem I've been working on for a few days that I can't seem to resolve: There is a model train going around a set track with a 2-D accelerometer mounted along the axis of the train. The accelerometer provides the current x/y acceleration values at a frequency of about once...
  30. J

    MATLAB Plotting vector fields in MATLAB or Maple

    Homework Statement The original problem was x'=(-2 1; 1 -2)*x and I needed to find two linearly independent solutions. Homework Equations The Attempt at a Solution I found that x1=(1;1)e^(-t) and x2=(1;-1)e^(-3t). Now I am trying to plot a vector field of this. Is there an easy way...
  31. B

    Plotting the position of a pendulum

    Does anyone know where I could find some information about solving a pendulum position. What I mean is a swinging pendulum and the position. The position would be the spot on the ground that a sun directly above would cast. I don't really know where to start other then the pythagorean...
  32. T

    Plotting Pythagorean triples in a polar form

    There are plenty of interesting plots that use various ways to plot the integer occurrences of a^2 + b^2 = c^2 such as making ordered pairs (a,b) and doing that for all such that a^2 + b^2 < [a really big number] and very interesting patterns are noted. My thought is plotting a polar analog...
  33. rohanprabhu

    How is the Mandelbrot set plotted and how are the color values determined?

    I found this image on wikipedia: http://en.wikipedia.org/wiki/Image:Mandel_zoom_00_mandelbrot_set.jpg and i have seen this image like many times, but i have never understood as to how it is plotted. How is the value of the color decided? Plus, if it is a complex plane, how are the axes...
  34. I

    How Can You Create Complex Seashell Surfaces in Maple?

    I've been doing some experimentation with plotting parametrized surfaces in maple, and I would like to get some ideas for more things I could do. I'm not very clever at figuring out new parametrizations, but I'd like to do some things with seashells. The plots I'm coming up with are very...
  35. N

    Complex Quantum Mechanical Problem needs Plotting

    So I have this equation: T=(cos(k2*a)^2+(1/4)*(r^\ast+\frac{1}{r^\ast})*sin(k2*a)*sin(k2^\ast*a))^{-1} where r=k2/k1; r^\ast=\frac{k2^\ast}{k1}; k2^\ast is the complex conjugate of k2 also k2=\frac{\sqrt{2*m*(E-V)}}{\hbar} and k1=\frac{\sqrt{2*m*E}}{\hbar} m,\hbar,a are all...
  36. A

    Plotting f(x) = 9x4-11x3+3x2+1

    Homework Statement Using the local minima, local maxima and points of inflection of the following function, plot the graph: f(x) = 9x4-11x3+3x2+1 The Attempt at a Solution f(x) = 9x4-11x3+3x2+1 f ' (x) = 36x3-33x2+6x = 3x(12x2-11x+2) = 3x(3x-2)(4x-1) therefore we have x...
  37. I

    Mathematica Mathematica Plotting interms of Y

    I'm trying to plot a function in terms of Y, but it always treats y as if it were x. Is there anyway I could "Turn" the graph 90 degrees? Thanks
  38. D

    Mathematica Plot Time vs Speed Values in Mathematica Easily

    I have a table of time values and speed values, that I want to plot in Mathematica. WHats the easiest way to plots these one vs the other? Should I turn them into Lists first? :S
  39. S

    Calculators TI 89 Titanium Help - Plotting y^2 graphs.

    The <Diamond> + F1 menu allows me to plot only Y= graphs. How do I plot a graph of say, y^2=x+4 ? You cannot plot y=Root(x+4) because you would miss the negative part of y. If this is the only way to plot such graphs, how to you tell TI to plot a y= +/- Root(x+4) ? Thanks.
  40. M

    Plotting Vector Field: V=(xi+yj+zk)/\sqrt{}(x^2+y^2+z^2)

    How to plot this vector field on a graph \stackrel{}{\rightarrow} V=(xi+yj+zk)/\sqrt{}(x^2+y^2+z^2)
  41. R

    Graphing Solutions to Multi-Parameter Equations

    How can I plot the graph for this: a+b=c and b^{2}-4ac>0
  42. J

    Plotting the naval territory of a country

    OK, say we have the border of a country represented by a polygon, how do we obtain a new border which at every point has it's nearest point to the country at exactly say 10 miles from it? Is there an algorithm to do this or is it highly computational? It's not as simple as it first seems.
  43. A

    Experimenting with a Pendulum: Damping & Plotting Graphs

    I am doing an experiment on the pendulum, and i wanted to do something on the damping, i understand a little as i have done some reading on it, the picture attached show the working i have done, i have reached a second order DE and i know little about this. So my question is, can you plot a...
  44. T

    Scientific notebook - plotting 3d surface

    Hi, I wish to plot a 3d surface but as of now have not been able to! I wish to plot z=f(x,y)=[x²+y²-1]^1/2 restricted to the domain: dom(f) = {(x,y)|=1 ≤ x² + y² ≤5} Any step by step instructions would be greatly appreciated! Thanks in advance!
  45. K

    Mathematica Mathematica question - plotting an equation

    How could I use Mathematica to give me a plot of the locus of z such that \arg(\frac{z-2}{z+5}) = \frac{\pi}{4} ? I've tried using ContourPlot and typing ContourPlot[Arg[(x - 2 + I)/((x + 5) + I)] == (\[Pi]/4), {x, -5, 5}, {y, -5, 5}] but it just gives me two vertical lines. I think...
  46. P

    MATLAB Plotting Vector in 3D Using Matlab

    Didn't know where to put this though its also a math problem.. I have to plot the vector in 3d using matlab v1=[8;2;-6] v2=[12;3;-9] v1 = 8 2 -6 v2 = 12 3 -9 v2= (1.5) * v1 Now I used...quiver3(v1,v2) It gives me the line though I...
  47. L

    Plotting a Matrix within an X,Y range

    Hi guys... Here's the problem. I want to plot a Temperature T(x,y) profile across a plate with dimensions L x W. I'm using finite difference method so the temperature are only known at the nodes I choose, if I make n nodes across the Length and m nodes across the Width I will end up with an...
  48. O

    Mathematica Plotting Logistics Equation with Mathematica

    I'm going through "The Chaos Cookbook" right now, a fairly old book on chaos programming. A bit too old I'm afraid, all the programs are written in Pascal and Basic. I had been using Excel (well, Open Office Calc) to do the iterations and graphing, but I feel that the size of the programs are...
  49. J

    MATLAB Matlab Plotting: Move Horizontal Line Over Graph Without Re-Plotting

    In my GUI I'm plotting a fairly large amount of data in an axes, and then plotting a horizontal line overtop that the user can control the vertical position of. Is there a way I can have the first plotted graph (the large amount of data) always be behind the line I am plotting overtop, and have...
  50. rohanprabhu

    Mathematica Plotting 3D Function with Color Saturation in Mathematica

    I want to plot a function in 3D such that the saturation of the color at any point is given by: S = f(x, y, z) so, when f(x, y, z) is maximum, i want the color at (x, y, z) to be say saturated Red [rgb(255, 255, 0)] and when it is minimum, i want the color to be white. How do i do...
Back
Top