Plotting Definition and 518 Threads

  1. F

    Newbie Asks: Plotting MATLAB Commands Output in PF

    Homework Statement Hello all, I'm new to PF..Pls help.. I'm stuck in the following query. I've MATLAB commands as follows: Hv=[1,2,3,4,5] for i=1:5 tspan=[1 30] h0=Hv(i) [t,h]=ode45[expression] plot(t,h) end And here i need to see induvidual plots of my 5 results..I...
  2. I

    Plotting the graph of y=1/log|x|

    I was just wondering as to how I can plot the graph of y=1/log|x| without putting a lot of values of x and obtaining corresponding values of y. I mean, how can I draw this graph using the graph of y=log x or the graph of log|x|? Is there a way?
  3. A

    Plotting a parametric function + area

    Given the parametric function defined by x = a cos ^3t, y = a sin^3t, plot the curve. So I converted the above to (x/a)^(2/3) + (y/a)^(2/3) = 1, and from that got y +-a(1-(x/a)^(2/3))^(3/2). However, I have no idea of how to actually plot a function of this form. Is my only choice to make a...
  4. nukeman

    Im stuck Question a bout graphing sin and plotting points

    Homework Statement Im doing a question where I have to graphc y = -4 sin x Ok well I got the period and amplitude, so I have the interval of [0, 2pi] Now, in order to plot points, I have to divide the interval into 4 sub intervals. I don't understand how I do that! This is where I...
  5. G

    How do I create a tornado figure using plot3 and comet3 commands?

    Homework Statement Hi, I'm taking Intro to Computing for Engr. and my highest level math course I have taken is Calculus I. I'm trying to solve this problem in my book for Intro to Computing for Engr. and believe that the math is over my head. This may well be the case. But sense this...
  6. N

    Mathematica Plotting Log as part of an equation in mathematica

    Hello I'm trying to plot log as part of an equation in mathematica and it does not seem to be working for me. for example I'm using Plot y = 25x / log10 (x) - 50x I'm just experimenting with different numbers and formulas to see what happens to the log curve...
  7. Z

    Plotting a Trajectory for a Ballistic Object: Complexities Revealed

    OK, having been researching this of late, I've come to the conclusion it is far more complex than I first thought! So I guess without further ado, I'll jump into explaining my problem... Aim: Having established a set of initial conditions, I would like to be plot the trajectory of a...
  8. I

    Searching for Plotting Software for Windows - PhysicsForums

    Hi, I'm not sure if this is the correct section of the forum to post this but here it goes... I'm looking for some plotting software (to run on Windows) that would be suitable for general use on an undergraduate physics course. I've played with "Grapher" on OSX and it seemed like the kind of...
  9. C

    Maple Basic Maple plotting problem not workin

    any how, i have this equation. I have read a quick online tutorial on maple. this is my equation in raw form Br*(arctan(W*L/(2*x*(4*x^2+W^2+L^2)^(1/2)))-arctan(W*L/((2*(x+2*T))*[4*(x+2*T)^2+W^2+L^2]^(1/2))))/Pi because i have 5 varibales, i did B1(Br,W,L,T,x):= [the above function] Now, i...
  10. L

    Matlab plotting discrete time signals

    hey I was just wondering if anyone can teach me how to graph a signal like this x[n] = { 1 for 0<=n<=4 { 0 elsewhere im not sure how to do this, what I have tried is x = [1 1 1 1] but this is not a function of 'n'.
  11. F

    Mathematica not plotting for me

    Homework Statement I've been trying to plot Plot[x^2/4 - ln[x]/2, {x, 0, 5}] And it keeps showing me a blank graph. I did it on Wolframalpha and it worked.
  12. B

    MATLAB Matlab loading data and plotting help

    hi i want to load multiple sets of data in a loop and the plot a linear graph each time the loop runs below is my code so far, i can't seem to load any variable from the file names, the variable are for example int_force=[1;2;3;4;5] deflection=[1;2;3;4;5] function load_data clear all...
  13. TheFerruccio

    Plotting the Image of a Complex Function: w=1/z

    Homework Statement Find/sketch the image of the function under the transform w = 1/z Homework Equations x=-1 The Attempt at a Solution So, I decided to take the mapping 1/z as 1/(x+iy) For x=-1: \begin{align} w=\frac{1}{z}&=&\frac{1}{x+iy}&=&\frac{-1-iy}{1+y^2} \end{align} Getting u in...
  14. M

    Mathematica Plotting a family of curves in mathematica

    Hi all, I'd like to plot a family of curves corresponding to different values of an integer n (eg. sin(nx) for n=1,2,3...) on a single graph, along with some kind of indication as to what value of n each curve corresponds to. I'm using the command Plot[Evaluate@Table[Abs[P[-t, n]], {n, 3...
  15. ChristinaJ

    Mathematica Plotting Nested Lists in Mathematica

    All, I am having trouble plotting nested lists. I have two data sets (A and B), both with dimensions 5x50. So far I have plot = Map[ ListPlot[#, PlotRange -> {0, Max[A]}, AxesOrigin -> {0, 0}, Frame -> True, FrameLabel -> {"position", "Intensity"}] &, A]; which...
  16. B

    Efficient Hue Plotting for Multiple Sets of Lists | Color-Coded Visualization

    I want to take a set of lists {list1, list2, list3, ..., list N} and plot them with color according to the following rule:Color set = { Hue[1-0.] , Hue[1/2], Hue[1/3], ... Hue[1/N] } For any arbitrary number of sets... where Hue[1-0.] is used because Hue[1] is not defined.
  17. U

    Help with Plotting a 1D Matrice in MathCAD 14

    Hello! I'm having the following problem; [PLAIN]http://www.hot.ee/jaaniussikesed/probleem_graafik.jpg I try to plot a 1D matrice with a sequence, or a 1D matrice and I get a result that "this value must be real". Now... what!? I am using MathCAD 14. Help is much appreciated, Uku
  18. J

    Plotting X & Y Values in Xmgrace

    Hi I have an open-office spreadsheet with x values and y values, I would like to plot in xmgrace. How do I do this? Thanks
  19. N

    MATLAB Plotting XYZ Coordinates in 3D with Matlab

    Hi all This is my first time here, so I will do my best to explain what I need help with. I have 2 sets of 11 xyz coordinates of some beads that I would like to plot in 3D. I want to show them in 3 space as a before and after (to represent a displacement of each point). I was able to...
  20. P

    MATLAB MATLAB: Plotting all iterations on a single graph?

    I want to plot r vs. Total_thrust for all iterations on a single graph. I'm using 'hold on;' but it is still only plotting the last iteration. Help? -------------------MATLAB CODE---------------------------------- Thrust = (mdot19*c19 + mdot9*c9)/gc; %Note: This is for one engine...
  21. S

    Plotting Planets Orbits around Sun using Schwarzchild Metric

    Hello, I'm currently studying general relatively and am trying to plot orbits of planets around the sun using the schwarzchild metric. I've worked out the geodesic equations, working with c=1 to simplify things, and written a MATLAB script to plot trajectories, but I'm struggling to work out...
  22. M

    Plotting Output of Function Given Transfer Function and Input in MATLAB

    i am trying to plot the output of a function given the transfer function and an input. however, i am having trouble with trying to express the input as a function in MATLAB my transfer function is m = 1; b = 2; k = 1000; num = [ 1000 ]; den = [ m b k ]; transferfunction = tf(num, den) so it's...
  23. K

    Plotting Two time dependant graphs at once

    Basically, we have two functions. P1 and P2. P1 Kicks in at t=0 and runs for a few seconds (a trig function). Then P2 starts, it's and exponential decay. Below is what I'm trying to do. I've tried to create time matrix and even ode solver. I need a way of plotting both functions on a...
  24. M

    Plotting Charge Density in 3D: Can My Data Be Formatted as an XYZ File?

    I have a charge density I would like to plot in 3D The data is currently in the format x1 y1 z1 density x2 y2 z2 density etc etc where x,y,z are grid points. Can this kind of data be formatted as an xyz file? I know xyz is normally atom locations (I have no explicit...
  25. N

    Plotting the Spectrum of a DSB-C Signal

    I have m(t)=0.2sin(w1*t) + 0.5cos(w2*t) ---> Note: the 1 and 2 besides "w" (omega) is not a coefficient, its a subscript to show that they are different. I found the Fourier transform to be M(F)=0.25[∂(f-f2)+∂(f+f2)] + 0.1j[∂(f+f1)-∂(f-f1)]. My question is, how do I sketch the magnitude...
  26. I

    Coulomb's Law regarding theta and plotting

    Homework Statement In lab, there was a string with a charged ball, and another charged ball moved closer to it. The ball's repelled and we had all sorts of data to calculate. I did a graph of the D vs 1/R^2 and the points fell almost right on. However, towards the end of that line, the...
  27. S

    Maple Help Plotting a Piecewise Graph(in Maple) But No Range is Given

    I need to know the command to how to plot a piecewise function graph, All the ones I have found successfully plot but they "ranges" to go with the domain value. The Two I have to graph don't have ranges or just have x(not equal to)= 0 or x=0 (Graphs are) attached thanks
  28. S

    Plotting a Function y(x) in MATLAB

    Homework Statement I want to plot into MATLAB the following function y(x): when x is between 1 and 2: y=1 when x is between 2 and 3: y=2 . . . when x is between 9 and 10: y=9 etc I have tried a code. but this code only plots the curve for the final case (so y=9 when x is between...
  29. A

    Plotting 4sin2xsinx +2 -2cos(4x) + 1/2 - 1/2cos(2x)

    I have found a magnitude to be the following: 4sin^(2) 2x + 4sin2xsinx + sin^(2)x I now need to plot this using excel so I have rewritten it as: 4sin2xsinx + 2 -2cos(4x) + 1/2 - 1/2cos(2x) 4sin2xsinx +5/2 - 2cos(4x) -1/2cos(2x) Using the fact: sin^(2)x = 1/2 - 1/2cos(2x)...
  30. D

    Plotting Vector and Derivative: A Frustrating Challenge

    I have been trying to plot a vector and it's derivative for a while now, but I cannot figure out why I can't get them to plot. Here is what I put for my code... a[t_] := Sin[t] Cos[2 t] b[t_] := Sin[t] Sin[2 t] c[t_] := Cos[t] V[t_] := {a, b, c} I tried this...
  31. R

    Using Matlab - plotting frequency responses

    Homework Statement I am asked to plot the log magnitude and phase of the frequency response 1 + 1/2*e^(-j*omega). I am told to use the freqz function for this problem. I have tried using the help freqz feature in Matlab but I haven't been able to work it out. Homework Equations...
  32. M

    Maple Plotting f(x) with Maple: -4 < x < 4

    I have to plot the function f(x) in maple, for -4 < x < 4. I have got: a:= 0.58 b:=0.61 c:=0.35 f(x) := e^(-a)(x^2) - (b)(x)*ln((x^2) + 1) ....2 + (x^2) + (c)*sin(x(Pi)) Maple interprets this correctly, but when i go to plot it, it comes up with 'Warning, unable to evaluate the...
  33. M

    MATLAB How can I fix the error message in my matlab plotting program?

    Okay so I am really new to matlab, I mean REALLY new. I am trying to write a program for one of my classes but I am having some trouble. I keep getting this error message: ? Error using ==> plot Invalid first data argument Error in ==> guessTraj at 89 plot('b-') And here is my code...
  34. L

    Help needed with plotting a graph (cern ROOT)

    ive been plotting 2D histograms (x vs y). when plotting using Draw->("surf"). it gives a 3D plot, showing the varying number of "hits" in each bin. I want to draw a TGraph which represents this so when drawing x vs y using Tgraph it gives a continuous line instead of a bunch of dots. I've got...
  35. rubenvb

    Plotting a non-closed form of an equation

    Hi, I need to plot this function z(B) with B=0...100 for an assignment: (1+z)^{\frac{2}{3}}-(1-z)^{\frac{2}{3}} = B But can't seem to discover how. Mathematica can't calculate the inverse (for rather obvious reasons), and neither can Matlab. A solution in either program is fine. Thanks!
  36. Y

    Plotting a line with negative slope in Mathematica

    I want to plot a line in mathematica with a negative slope by setting it's starting point, length, and slope but i couldn't figure out how to do it. example: A line "AB" has a starting point (40,0) has a length 10 has an angle 127 degrees between x axisIn MATLAB i can do this with %% k =...
  37. N

    Plotting Phase Diagrams (Temperature vs Composition)

    I'm planning to plot phase diagrams of Temperature vs Composition. I found the formula ln(x) = \frac{\Delta H}{R} (\frac{1}{T_A} - \frac{1}{T}) from the Clapeyron equation. Its a ideal solution of 2 metals in L state and regular solution in S state. Eutectic temperature is at 850C and enthalpy...
  38. T

    Plotting Intensity in Airy Pattern of Telescope - 1D

    How would I come up with an equation (in one dimention), for the airy pattern of a telescope with a given diameter observing at a given wavelength? something that looks like this http://upload.wikimedia.org/wikipedia/commons/9/93/Airy_Pattern.svg I want to be able to plot Intensity in the...
  39. C

    MATLAB Help plotting transfer function in matlab

    Hello, I need a help here, cause I only have basic matlab.. I want to superimpose two transfer function, Gp(s)=(Kp/sT+1)*e^(-sL) in frequency domain, in time domain y(t)=Kp*(1-exp(t-T)/L)*1(t-L) where, the value of Kp, T and L are known.. and t is matric time from 0-24.5 [0, 0.5, 1...24.5]...
  40. R

    Integrating f(x) with Trapezium Rule & Plotting for Different Values of C

    Homework Statement Write a script file to integrate the function f(x)=x^3+tan(x)+C using the trapezium rule.Calculate the integral between the end points x=2 and x=4 with strip size 0.1.Calculate the integral for range of values from 1 to 3 in steps of 0.1.plot the integral obtained for...
  41. J

    Mathematica Plotting Parameter t vs. e1 Values

    I would like to generate a plot displaying the parameter t on the x axis, varying from 0 to 0.95 and the corresponding values of e1. My code below does what I want (I think) but is plotting all the different points on different graphs (all 950 of them!). How can I get it to plot on the same...
  42. J

    Mathematica Solving Real Roots with NSolve and Plotting a Bifurcation Diagram

    Hi, I'm using NSolve in Mathematica but I only want to find the roots that are real numbers as my answer gives a lot of imaginary numbers. How can I do this? I want to then plot a birfucation diagram using a table of data. Is there a function to do this? Thanks!
  43. G

    How Do You Plot a Position-Time Graph with Subtle Curves?

    Homework Statement Plot your position-time info on a graph. Draw a smooth curve that fits the data closely Homework Equations t(s)---D(mm)(Position Data) 0.00---0mm 0.20---18mm 0.40---37mm 0.60---58mm 0.80---82mm 1.00---101mm 1.20---115mm The Attempt at a Solution I am not...
  44. E

    Plotting orbitals/density from NWCHEM output

    Hello all. Does anyone have any experience in viewing the more detailed output from NWCHEM? It's easy for Gaussian or GAMESS where the outputs themselves are inputs for molden or other programs, but for NWCHEM you have to specify in the input file exactly what sort of output you want for the...
  45. B

    MATLAB Acquiring images and plotting graphs using Matlab

    I want to create a Matlab script which takes images and plots a graph of image intensity versus position. Currently created a script like this: %Create video input object vid = videoinput('winvideo',1,'RGB24_640x480'); % Set video input object properties for this application. % Note...
  46. W

    Mathematica Mathematica 3D plotting question

    I'd like to make a single 3D graph that contains a scatter plot and a plane. Ideally I'd like to import the data for the point from an excel file, but if I have to punch it in, I can find a few hours to kill. Anyway, can anyone help me with the code for this? I can get a 3D scatter plot where...
  47. J

    Trouble Plotting 3D Graph with Two Variables and Matrix Data

    I have 2 variables and data points corresponding to them and so would like to plot this (I think using the plot3 function for a 3D graph) but I'm having trouble writing my code. Each variable ranges from 0 to 1 (in 0.1 intervals) and so this would be the x and z axis, and I have data points...
  48. A

    Plotting a 3-d surface in spherical co-ordinates

    Homework Statement The following is an equation of a 3-d surface in spherical co-ordinates. r = f(theta,phi) = sin(theta) Plot it on 3-d space. Homework Equations r = \sqrt{x^2 + y^2 + z^2 } theta = arccos (z/ \sqrt{x^2 + y^2 + z^2 }) The Attempt at a Solution I converted the equation of the...
  49. R

    Visualizing Temperature Distribution in 3D using MATLAB

    I have a temperature distribution T = T(x,y,z). I want to visualise it in MATLAB ( such that the colour(s) used by MATLAB in plotting should give me an idea of depth of temperature i.e whether its high or low compared to its neighbouring points). Please help
  50. M

    Mathematica Mastering Mathematica Plotting: Tips and Tricks for Visualizing Your Data

    I have some data I imported into Mathematica. It has three columns. I want to plot col1 vs. col2, col2 vs. col3, and col1 vs. col3. I started out doing this Flatten[Partition[data, 3]] to get one long list. I'm kind of lost. Any help is appreciated!
Back
Top