Plotting Definition and 560 Threads

  1. N

    MATLAB Why am I Getting an Error Message When Plotting Functions in MatLab?

    Hey everyone, I just started, what is supposed to be a beginners course in MatLab, but I am the only one who has never used MatLab before! I'm stuck on the very first HW assignment (although I did manage to get to problem 6 out of 7) and was hoping someone could explain why I keep getting an...
  2. J

    MATLAB Solving Orbital Motion Equations with RK4 Using MATLAB

    I'm trying to plot the solutions of the second order differential equation d^2R/dt^2 = GM/R^2 + Lz^2/R^3. I'm reducing this to a system of first order ODEs and then using RK4 to solve this system. My code is given by function RK4system() Tsim = 10...
  3. jdawg

    Help with Plotting Data & Function in Matlab

    Homework Statement I'm a little lost on how to plot this data and function. I included the homework question and my attempt at plotting in the attached picture. I'm pretty sure what I have is completely wrong and I honestly don't have much of an understanding of matlab, so the more you dumb it...
  4. M

    LaTeX Plotting a Line in TikZ: Investigating Unexpected Behavior

    Hi PF! I'm plotting a line in TikZ using the following code \draw[domain=0:25,samples=100,color=blue,variable=\x,line width=1.5] plot (\x,{0.9924686128641765 - 0.023406305144575135*\x - 0.0006942621866861979*\x^2 - .000001925581045950128*\x^3}); The largest zero is 24.0699 but latex is...
  5. A

    I Plotting number of halos per logarithmic bin

    Hello all,. I'm right now playing the publicly released data from the Illustris simulation. Im trying to plot the number of halos per logarithmic mass bin or the number of halos between mass M and M+dM I'm only familiar using theoretical models like Press-Schecter and I have no idea how do...
  6. K

    I Data Plotting Help: Calculating Error Bars for Gradients and Average Gradient

    I'm doing an experiment at work where I am observing an "event" over time. This event can be anything, but let's assume its a bucket of water being filled to the top, then it gets replaced with another bucket and I watch the whole "event" again. So x-axis will be time, y-axis will be the volume...
  7. Ben Wilson

    MATLAB Plot 3D Function: Point Where f=1, No Point Where f=0

    I had a function of 3 variables f'(kx,ky,kz) and did an ifft f = ifft(f') and now i have a function where inside a small polygon the function f = 1, and outside f=0, within a cube space of length L. how do i plot a scatter graph for this function where there is a point when f =1, and no...
  8. S

    Plotting pressure distribution of fluid flow in a pipe

    Hi all, I am analysing the flow of water in a subsea pipe, and have been getting stuck in trying to solve the energy equation to plot a temperature distribution across the pipe diameter I have derived the equation as such seen in my attachement. But my main question is how should/would I...
  9. Thales Costa

    I Plotting and visualizing a 3D plot of a vector function

    Hello, I'm trying to figure out how to plot a certain vector valued function but I'm having a hard time. The problem gives me the following vector valued function: r(u,v) = <u + v, 3 - v, 1 + 4u + 5v> I don't know how to plot this. So far I've tried making a table with some u and v values to...
  10. G

    How to plot the linear system solutions with multiple solutions?

    Homework Statement Solve the linear system of equations: ax+by+z=1 x+aby+z=b x+by+az=1 for a,b\in\mathbb R and plot equations and solutions in cases where the system is consistent. Homework Equations -Cramer's rule -Kronecker-Capelli's theorem The Attempt at a Solution Using Cramer's rule, we...
  11. nmsurobert

    Plotting reflection coefficient

    Homework Statement plot the magnitude |r| of the reflection coefficient as a function of incident angle from 0 to 90 degrees with a step size of 1 degree for the following cases: (ill only post one) A transverse electric plane wave in incident from air to glass Homework Equations r = (n1cosθi...
  12. E

    Maple Problems with plotting a function in Maple

    Hey so I'm working on a simulation to compute the multiplicity of two Einstein solids.. long story short I'm having a tough time plotting a function. To start, I defined the following: Which, when simplified yields: I named this simplified result K: Plotting this... What I get is...
  13. BubblesAreUs

    Python Python problem: Plotting two functions against each other

    Homework Statement Enter a minimum height and velocity into plot function and return a velocity-height plot. Homework EquationsThe Attempt at a Solution # Find length of general list n = len(K) # Build a list for time [0,20] seconds ( Global) time = n*[0.0] # Acceleration of gravity g =...
  14. sunrah

    A Having Trouble Plotting the Cosmic Shear Power Spectrum Kernel?

    I'm having difficulty plotting the kernel I(k_{1},k) of the cosmic shear power spectrum which is defined as I(k_{1},k) = k_{1}\int^{\infty}_{0}r j_{l}(k_{1}r)dr \int^{r}_{0}\frac{r-r'}{r'}j_{l}(kr')\sqrt{P^{\Phi\Phi}(k)}dr' where the jl are spherical bessel functions. I'v tried plotting I vs...
  15. K

    Mathematica Troubleshooting Mathematica Plotting Problem

    Homework Statement I've entered the following piecewise equation into Mathematica: Plot[Piecewise[{{sin (t), 0 <= t < \[Pi]}, {5 + 5 cos (t) + sin (t), \[Pi] <= t < 4*\[Pi]}, {10 cos (t) + sin (t), 4*\[Pi] <= t}}], {t, 0, 20*\[Pi]}] But I am getting a blank graph in return. I've proofread my...
  16. U

    Plotting Bode of Resistor w/ DC Source: 20*log(0)

    I am ploting bode of resistor connected with DC source.So no freqvancy at all! The bode magnitude plot should be(or it should start from) 20*log(jw)=20*log(0) (jw=0 because we have dc source) what should be the value??for step of 5v... what should bode look like??
  17. N

    Is a Line Intersecting at One Point a 1-1 Function?

    if we draw a line parallel to the x- axis and passes through a point in the image and the graph intersects at one point is this a one to one function ?
  18. N

    A question on plotting functions on a graph

    when i was reading a supplementary notes doc from open course ware fro MIT on single variable calculus there was a description about a graphical representation of a single valued function as " if each line parallel to the y- axis and which passes through a point in the domain intersects the...
  19. N

    A question on plotting functions on a graph

    when i was reading a supplementary notes doc from open course ware fro MIT on single variable calculus there was a description about a graphical representation of a single valued function as " if each line parallel to the y- axis and which passes through a point in the domain intersects the...
  20. kelvin490

    Problem of plotting picture and video in Linux HPC

    I have a Matlab program that reads data file and then create avi. files and tiff pictures. It runs without problem in window OS using R2014a but cannot run in a Linux high performance computer(HPC). When the Matlab in Linux is started there are two warnings: Warning: No display specified. You...
  21. 24forChromium

    Plotting graphs in three dimension

    I have function1: x = n(cos((pi/2)-2pi/n)) and function2: y = n(sin((pi/2)-2pi/n)) my goal is to plot a graph where for the same value of n, the x and y are respectively the horizontal and vertical component of the point, this graph should preferably possible to create on a computer or a...
  22. P

    Would a Force vs. Acceleration Graph Lie in Both Quadrants One and Three?

    If plotting F=ma on a graph with F as one axis and a as the other, would the line be in both quadrant one and three since the force vector, and subsequent acceleration vector, could be negative?
  23. tomdodd4598

    Plotting the Probability Density of the Coulomb Wave Function

    Hey there - I think I have an issue with my 3D density plots of the probability density of the Coulomb wave function. The reason I think something is going wrong is because my plots of |ψ(n=2, l=1, m=-1)|² and |ψ(2, 1, 1)|² are identical, while I would expect them to have the same shape but be...
  24. T

    MATLAB Resolving MATLAB Plotting Issue with Velocity & Position

    I am trying to plot the magnitude of velocity and position against time but keep running into issues. The error I am getting here is: Subscript indices must either be real positive integers or logicals. Error in project2 (line 46) position(t) = w(1:3);Here is the relevant portion of my...
  25. A

    Plotting Minkowski diagram for 2 simultaneous accelerating

    Homework Statement two objects are at rest in an inertial reference frame. Two objects accelerate simultaneously in the same direction until reaching half the velocity of light and then halt simultaneously. The two objects are initially connected by a thread just long enough to cover the...
  26. N

    MATLAB Plotting Complex Wavefunction - Matlab

    Hi, I am wondering how to plot a complex function of the form: Ψ(t) = Ansin(n⋅pi⋅x/L)e-iEnt/h + Bnsin(m⋅pi⋅x/L)e-iEmt/h + ... + where m and n are known eigenvalues of the infinite square well with corresponding energy En, for any particular x? So, this will be a function of solely t. Any help...
  27. J

    Matlab, plotting a directional field

    Homework Statement Plot the direction field of y' = −t(y 2 − .5y − .5) for t=[0,5] and y=[-2,2]. Plot a line every 0.25 units in t and y. The length of each line should be 0.1. Hint: Use line(). Look at the picture to determine the starting and ending coordinates of each line. Homework...
  28. STEMucator

    Plotting ##I_C## vs. ##V_{CE}## for Resistors in Active Region

    Homework Statement I want to plot ##I_C## versus ##V_{CE}## curves for the following: To do so, I need to find appropriate values for ##R_C, R_B## and ##R_1## in the active region. Note that ##R_2## is a potentiometer. Homework Equations ##I_C = 1 mA## ##V_{BE} = 0.7 V## ##\beta = 150##...
  29. A

    How to Calculate Hopping Parameters and Plot Band Structure in MATLAB?

    Who can help me in writing the following program: phase(i) = exp(1i*dot(k(:,index),R(:,i))) This gives you the phase you're going to multiply with the hopping parameter. You'd have to write a loop that runs from i = 1:3 in order to multiply each contribution to the hopping parameter such that...
  30. J

    MATLAB Plotting an integral-defined function in MATLAB

    At this exact moment, the proper name of functions defined by: f(x) = ∫0xf(t)dt escapes me, so I apologize for the title maybe not being as clear as possible. What I'd like to know is how to go about defining such a function so that I can plot it. Do I just put the variable x into the upper...
  31. N

    Mathematica Plotting Graphene in Mathematica

    I am encountering an issue when I plot attempting to plot 3d band structure of graphene in Mathematica. While the general shape and curvature looks fine, the cones at the K-points are not touching, which is an important qualitative electronic property of graphene. Since further down the line I...
  32. B

    Mathematica Plotting A Set of Points in Mathematica

    A have the set consisting of the complex numbers ##1 + 3r \cos \theta - i r \sin \theta##, where ## r \in [0,1]## and ##\theta## may vary between ##0## and ##2 \pi##. This is my first encounter with mathematica, and am having difficulty discerning between the methods I have found online which...
  33. Y

    MHB Plotting the definition region of a function

    Hello all I have this function with 2 variables: \[f(x,y)=\frac{\sqrt{x}+\sqrt{9-x^{2}+y^{2}}}{ln(\frac{1}{4}x^{2}+\frac{1}{16}y^{2}-1)}\] and I wish to plot the definition region (where the function is defined). I did the calculation manually, and asked MAPLE to plot my inequalities, and I...
  34. M

    Mathematica Plotting Quadratics and ODE Solutions in Mathematica - A Guide for Beginners

    Hi PF! I am trying to plot several quadratics along with two numerical solutions to some ODE's. The command I entered for the two ODE's is Plot[{{Evaluate[y[x] /. t]}, {Evaluate[y[x] /. s]}}, {x, 0, 1.2}, PlotRange -> All] where s and t have been previously defined. The plot for the...
  35. A

    Mathematica Mathematica problem with plotting

    Hello, I'm trying to plot some functions with different parameters on the same graph. For each one I have to calculate some parameters from a matrix A. I need to plot this for several matrices A, so I'd like to be able to just copy-paste the new elements in the matrix A, rather than writing them...
  36. D

    Plotting energy as a function of wavelength

    Homework Statement Given work function W=2eV Plot energy of an electron knocked off with respect to wavelength Homework Equations E=hv-W The Attempt at a Solution E=h (c/(lambda))-2 I plotted this and I get a function that goes to infinity with zero wavelength and crosses the x-axis at 6000...
  37. D

    Trigonomic Functions, Plotting from equation

    Hi All, Having a tough time with this one and I'm not sure why. Need to state amplitude, period and phase shift of f(x)=3cos2[x-(π/4)]+1. Amplitude being 3, period being 2π/2=π and phase shifted (π/4) to the right. Midline would also be at y=1 Good so far? Right, so I know that 1/4 phase...
  38. majormuss

    Mathematica Using mathematica to arrange data into Bins for plotting

    Hi Everyone, I need to organize a bunch of raw data into bins and their frequency. The data is quite large (about 60000 entries). However I am having a lot of trouble with the right commands. I used the Wolfram documentation center but I still keep getting error messages...
  39. M

    MATLAB Optimizing Plotting for Complex Functions with Large Numbers

    Hi PF! I am trying to run the following plot: k = .001; figure; hold on [X,Y]=meshgrid(-4:0.01:4); a = 5.56*10^14; b = .15/(2*.143*10^(-6)); for n = 1:8 k = k*2^(n-1); Z = a./(X.^2+Y.^2).*exp(b.*(X-sqrt(X.^2+Y.^2)))-k; contour3(X,Y,Z) end which works great if a = b = 1. But now...
  40. Rapier

    Root Plotting 2d-Array in Histogram

    Homework Statement The task is to plot a 2-d surface of the potential and field lines calculated from a numerical method. In this case, there is a charged box (v = 1) @ r = 1 (it's not round, but each side is d = 2 and the center of the box is at the origin) and the edges of the box are v=0...
  41. C

    Visualizing a Parametric Equation in 3D Space

    Homework Statement Given the eqn x=2, y=sin(t), z=cos(t), draw this function in 3-space. Homework Equations ABOVE^ The Attempt at a Solution I did this: x^2+y^2+z^2=2^2+(sin(t))^2+(cos(t))^2=5 Therefore we get x^2+y^2+z^2=5 Which is the eqn of a sphere with radius root5. My friend said it's...
  42. R

    Plotting Phase Space for Double Pendulum

    Homework Statement For a double pendulum, how do we plot the phase space for ##\theta_2## (the lower of the pendulum), i.e. the plot ##\theta_2, \ \dot{\theta}_2?## ##x## = horizontal position of pendulum mass ##y## = vertical position of pendulum mass ##\theta## = angle of pendulum (0 =...
  43. P

    Plotting of relay current curves

    When Plotting relay current curves using log paper, I understand that all curves should be plotted on a common base voltage (converting currents accordingly) and the curves can be cut at the maximum fault current level that the device is likely to see (corrected to the base current). What I...
  44. I

    Software for "connecting" and plotting multiple equations

    Hello Right now I'm going through Feynmans lectures and sometimes the equations really get tons of substitutions so you must look back at where something fits a lot. So my question: is there some software in which you can input multiple (simple) equations and place them around like a "mind...
  45. S

    Plotting a Beam Deflection Graph

    Homework Statement I need to plot a graph showing the deflection of the beam across its length giving a value of x at every 1m. The youngs modulus for the beam is 210 GNm^-2 and the moment of inertia is 54 X 10^-7 m^4 Homework Equations Really unsure where to start on this one. I have found...
  46. J

    MATLAB Help please in matlab -- plotting a D'Alembert wave equation

    Can someone please help me in plotting a D'Alembert wave equation solution in MATLAB? I am so confused as how to plot it in MATLAB I need to plot a graph like the one below
  47. KleZMeR

    C/C++ How can I easily install a C++ plot library on a Mac?

    Hi All, Not sure if this is the right place for this thread but it seemed like it was. I have been trying for two whole days to get some plotting tools up and running that will work with my: OSX 10.8.5, Xcode 5.1. I have tried MathGL, Plplot, Gnuplot, Chplot, matplotpp, etc. I get errors...
  48. A

    MHB What Are the Correct Steps to Plot Stability Regions in Numerical Methods?

    In many cases one finds code such as x = linspace(-3,1.5,200); y = linspace(-3.5,3.5,200); [X,Y] = meshgrid(x,y); Z = X +Y*i; %Euler's Method M = abs(1+Z); [c,h] = contour(X,Y,M,[1,1]); set(h,'linewidth',2,'edgecolor','g') to plot the stability region of the Euler's Method, where in fact the...
  49. L

    MATLAB Plotting a Dose-Volume Histogram from Matrix of Values

    Hi, I have a matrix 150x1 with values between 5.321 to 13.226 and I want to use the matrix and plot a dose-volume histogram (https://en.wikipedia.org/wiki/Dose-volume_histogram). Can someone help me.
  50. DaveC426913

    Correcting Speed Graphs on Maps Using Excel

    Trying to figure out how to get the curve I want, to plot on a map. This was my first iteration: It's wrong.The following sample will illuminate why. For illustration, the sample is much smaller and far more idealized than my real dataset, which is 100+ datapoints. In my idealized trip, I've...
Back
Top