Plot Definition and 717 Threads

  1. S

    Mathematica Mathematica array plot won't plot and it erases all of my stored variables

    Hi, I wrote some code on a computer at school. dim = 50; Ediff = ConstantArray[0, {dim, dim}]; \[Lambda] = .5; steps = 10; Ediff = ConstantArray[0, {dim, dim}]; L = 1; For[xs = 1, xs <= dim, xs++, For[ys = 1, ys <= dim, ys++, Ediff[[xs, ys]] = Ediff[[xs, ys]] +...
  2. M

    MATLAB How to plot MATLAB contour plots for a variable z dependent on x and y variables

    Hi all I am trying to do a MATLAB plot, just like the one attached. DATA: Graph shows a parameter (suppose) humidity along the height from ground upto 6 Km. Instrument measures humidity at each 30 meter height from the ground. Sample is repeated after each 15 minutes. DATA FORMAT: Data...
  3. C

    Mathematica How to label points in 3D Scatter Plot (Mathematica)

    Hi, I really need some help here. Right now I am plotting points on a 3D Scatter plot chart in Mathematica. I want to assign each of these points with a value which will be the label. Basically each point has 4 variable in the parameter. Its x,y,z cartesian coordinate position and the last...
  4. EVriderDK

    How to plot complex vectors in Mathcad? (Electrical)

    Homework Statement I have to plot the following complex numbers into the complex plane: X_C=0-1350i X_L=0+980i R_L=100+0i
  5. M

    MATLAB Plotting Multiple Pictures with Points from a Matrix in MATLAB

    Hi all I am novice MATLAB programmer, and I need alittle help with plotting points, given in a txt. file. I have a text file containing 56 points for 40 pictures. I've loaded the txt file by "load -ASCII nameofthefile.TXT" - and thereby created a matrix <112x40 double> the first 56 rows...
  6. M

    MATLAB Plotting Matrix in Matlab Loop - Mathias

    Hi, I have a matrix for instance as follow: A=[0.087 11.43 17.14 22.86 28.57 34.29 40.00 45.72 51.43 57.15 0.174 5.671 8.506 11.34 14.17 17.01 19.84 22.68 25.52 28.35 0.261 3.732 5.598 7.464 9.330 11.19 13.06 14.92 16.79 18.66 0.349 2.747...
  7. C

    Mathematica How to Plot in Cylindrical Coordinates in Mathematica?

    I'm looking for a function to plot things in 3D using cylindrical coordinates but apparently Mathematica doesn't have one?
  8. H

    Plotting a Locus Equation on a Graph

    How do u plot a x2,x3 graph? How do u do so? for example i have a locus equation and how do i plot it on the graph paper?? i don't know if i already miss it at school or what.. Harris
  9. C

    Why Does the Bode Plot of a Type 1 System Show a Damped Slope Initially?

    For a transfer function of G(s) = 100 / (s(s+5)), I'm having trouble finding the initial magnitude in dB. It's a type 1 system. If it was a type 0 system with only (s+5) in the denominator, the initial magnitude would be 20log(nominator/denominator) where s is an element of 0, and would decrease...
  10. E

    Plotting Data in MATLAB: Two Graphs in One Plot

    I have a set of measured data. I need to plot this in MATLAB and show two graphs in one plot. Data for first graph is : [0.35,0],[0.4,130],[0.45,400],[0.5,0.11],[0.55,34] and so on. Second graph is a function. So, how to plot sequence of data in matlab? Which command should I use?
  11. A

    Mathematica Plot 2d image from 3D data Mathematica

    hello guys, I have a CSV file with hyuge set of data devided into 3 cols. Y position X position and corresponding intensity values. I want to plot the image , my thesis is laser- microscopy. so a 2D plot ( density plot ) based on these values. The following is what I have tried so...
  12. K

    How can I plot multi value in same bar with coloure range

    Hi Friends Can anyone help me with m-file for the subject below I have an Excel data sheet Which give Thickness of several pipes on 5 Different heights and I want to plot each bar is for one pipe with 5 values in 5 Different heights and give A different color for Thickness range example my...
  13. P

    How should I draw a simple plot?

    Hi. Let's say there is a need to recreate a primitive plot like http://img27.imageshack.us/img27/6001/graz.png Surely I can Photoshop it, I can even generate it using Mathcad or such, but pictures look awkward when imported into documents... I dare to say I want them scalable and...
  14. M

    Why Does My Bode Plot Phase Shift Differ from My Friend's?

    Homework Statement I have the transfer function: for the circuit: The component values are know, and are: R1 = 47kΩ R2 = 4K7Ω C = 10nF Homework Equations The Attempt at a Solution I have derivied the transfer function but have become stuck on plotting the bode plot. I understand...
  15. M

    Engineering RC circuit Transfer Function/bode plot

    Homework Statement I have for the attached circuit measured the amplitude and phase response, but the question I have to answer is too theoretically, derive, similar results and then compare the two methods. It is suggested to figure out the transfer function and plot the magnitude and phase...
  16. C

    How to plot Ixt with monologarithmic scale and find linear fit

    I have some experimental data of a simple RC circuit, which I measured in fixed time intervals the current through an microamperimeter, and now I need to make an i(t) × t graph, with the vertical axis on a logarithmic scale (so my points fall into a 'straight' line), and then I need to find the...
  17. R

    MATLAB MATLAB-saving data after loops for surf plot

    Hi everyone, it has been a while since I used MATLAB, and I find myself in need of something that I hope is rather simple. I am making a surface plot of a function that is a little odd. To plot said function I would normally use meshgrid or something, but that will not work thanks to my...
  18. C

    What are the characteristics of a second order bode plot?

    What is the difference between second order zero bode plot and second order pole bode plot?
  19. K

    Calculators How do you plot y'=3+2y on a TI-Nspire CX CAS?

    Hi, I'm new here. I did some research plotting the ODE of y'=3+2y without having x shows up in the equation. I can't figure it out, why the calculator does plot a harder equation but not a simple one? I can get the slope field with an equation that has an x in it. However, without x, my...
  20. Saitama

    Why is the Arrhenius plot for the rate constant different from y=e-1/x?

    Homework Statement This isn't a homework question but this thing is disturbing from a long time. I attended a class on Arrhenius equation and its plots. One of the plots is disturbing me from long which is the plot between k vs T. Arrhenius equation:- k=Ae^{-\frac{E_a}{RT}} k->Rate constant...
  21. H

    How to Create a 2-D Contour Plot with Labels Using Gnuplot?

    Hello with gnuplot I need to have 2d contour plot from a file (say ss.dat) with three column, first and secend columns are X and Y respectively and the third column is magnitude (I need to have this magnitude with labels on it in 2d plot). Thanks in advance Hamid
  22. S

    Mathematica Mathematica:how to plot a maximum point in a graph

    anyone can help me to plot a point. r = Plot[Sin[j], {j, 0, Pi}]; what i am doing is i use FindMaximum first to know the point of maximum. FindMaximum[Sin[j], {j, Pi}] then i manually key in the x,y coordinate from the search. onedot = ListPlot[{{1.5707963267948966, 1}}...
  23. C

    MATLAB Godelproof Matlab 3D Plot question

    The following is FreeMat code, but it should get you close enough in pure Matlab: --> x=[0:0.1:1]; --> [X,Y]=meshgrid(x); --> Z=X.*(X>=Y)+Y.*(X<Y); --> surf(X,Y,Z); CB
  24. M

    Can I Use Rates Instead of Rate Constants in an Arrhenius Plot?

    Heres the question: http://img215.imageshack.us/img215/1185/screenshot5xq.png Kinetics is probably my weakest area in chemistry so I'm struggling. To find the shelf life, I need to use the Arrhenius equation but I don't know the activation energy Ea or the A constant. So I converted 2 those...
  25. T

    How to plot pressure distribution around airfoil

    what are the equations used for pressure distribution in solid work when analyzing of an airfoil
  26. T

    Mathematica 2D surface density plot in Mathematica

    I am trying to plot the following function: \sigma(r, \phi) = \frac{3r^2}{\sqrt{1 - r^2}} e^{i(2 \phi - \omega t)} where \sigma is a surface density, r is radius, and \phi is azimuthal angle. It is supposed to yield a "bar shape" for a galactic disk, but I'm not sure how to go about...
  27. D

    Mathematica Mathematica - 2D plot for function of 2 vars?

    I have a function of two variables, f(a,b). I want to create a series of 2D plots (on the same plot) of f(a,b) vs a, for a=1 to 10, for a set of discrete values of b (e.g. b=10,20,50,100). Is there a simple way to do this? Plot3D works, but I cannot find how to do it in 2D. DN
  28. N

    Magnitude and Phase Bode Plot Help

    Hi all, on a current homework I have been given a transfer function and asked to draw the straight-line (asymptotic) magnitude (dB) and phase (degrees) Bode plot. I first learned Bode plots roughly a year ago, and while being on spring break and my notebook from last year is at school, I'm...
  29. G

    Maple Maple gives plot inconsistent with equation

    Hi, OK, its night, I've been in front of this computer for eight hours and am slowly but surely going insane, not least because of the latest in a series of issues in what, I was hoping, would be a straightforward calculation. So here it goes: Basically I'm using Maple to conduct what...
  30. S

    How can I smooth out my spectral phase plot in Matlab?

    Hi everyone, I have this Matlab code : function PH = testing close all; x = [0:1e-3:10-1e-3]; ph = -(x-5).^2; y = exp(-(x-5).^2./(0.2^2)).*exp(i*2*pi*ph); Y = fft(y); Y = fftshift(Y); PH = angle(Y); X = (x(2) - x(1))^-1*linspace(0,1,length(x)); figure plot(x,ph); figure...
  31. C

    Plotting a Kurie Plot with a PHA

    Hi... I have to measure the end point energy of a beta minus particle being emitted from a Sr-90 radioactive source. Part of this is plotting a Kurie plot. I am using a pulse height analyser (PHA) to get the beta spectrum (which counts how many beta particles are detected N,on the y-axis and...
  32. kandelabr

    What is the meaning of positive phase in a bode plot?

    Homework Statement I have a bode plot with a positive phase. Homework Equations this is a MATLAB code for the thing % bode phase plot w = logspace(1, 4, 100); G = 100*(1+0.017i*w)./(1i.*w.*(1+0.05i.*w).*(1+0.0025i.*w).*(1+0.001i.*w)); fi = atand(imag(G)./real(G)); semilogx(w, fi); % x-axis...
  33. 1

    Particle discovery - reading the plot

    Hi all. How to read the following plot? Thanks.
  34. M

    Plot diff plot from a periodic function

    Hi everyone! I've written a M-file to draw a sawtooth periodic function as below: function y = sawtooth_w(x) % We find the period number of every element % in the input vector p = 1; %k = 4; tn = ceil((x+p)/(2*p)); % and we subtract that corresponding period from % the base value...
  35. D

    MATLAB Altering Matlab Code for a Logistic Map Cobweb Plot

    I found some Matlab code that works. However, I am not sure how to alter it for my needs. How can I make the code work for this:##N_{t+1} = \frac{(1+r)N_t}{1+rN_t}##What needs to be changed? %%% MAKES A COBWEB PLOT FOR A LOGISTIC MAP % compute trajectory a=3.0; % parameter x0=0.2...
  36. T

    MATLAB Why Does My MATLAB Plot Show a Line Instead of a Point?

    I have attached a picture of my problem to this thread. When I plot the column vector x=[1;1] I get a straight line instead of a point, does anyone know how to fix this?
  37. S

    What to plot as the errors for a moving average plot of temperature?

    I have been monitoring the temperature of a mirror surface placed outside at night. The temperature is measured at 10s intervals and so, as you can imagine, a plot of the data for one period is quite noisy. I have therefore decided to "smooth" the data by plotting a moving average over a...
  38. A

    X-t plot of underdamped motion

    Here is the x-t plot of underdamped motion...
  39. A

    Mathematica Plot Gamma Function with Mathematica

    I have a gamma function in the form of Gamma(s-1) where s can take only positive values. How can I plot this function for different value of s using Mathematica ?
  40. D

    Mathematica Mathematica Plot to Latex Document

    How can I put a Mathematica plot in my Latex document?
  41. D

    What software was used to plot this diagram of morse potential

    Hi all, I recently saw a very nice diagram of the morse potential on wikipedia I am curious if anyone has any suggestions as to how this diagram was made? What software package was used? In particular how the actual morse curve was plotted.
  42. A

    MATLAB 2D plot of a function WITH MATLAB

    My function is; y(x,s)= 1-(cos[(s-1)arctan(x)]*gamma(s-1))/(1+x^2)^(s-1)/2 varible x will have range from 0 to 10. At one time the s value will be constant e.g. s = 3 but I want to change s for different values( is there any commands in MATLAB that will allow me to do this ?). I tried many...
  43. S

    How to Plot a 2D band structure?

    Dear forum people, I just learned how to get a tight-binding dispersion for graphene: E = +- \sqrt{1+4\cos((\sqrt{3}a/2) k_x)\cos((a/2) k_y)+4\cos^2((a/2) k_y)} But i can not figure out how can I plot that. I want to plot that in the following path: K \rightarrow \Gamma \rightarrow M...
  44. 1

    MATLAB Help with MatLab Plotting Issues | Thomson Spectrometer

    Hi all, I'm working on a simulation for some misurement with a Thomson spectrometer and I'm having some issue with the plot layout. In x and y-axis I have magnetic and electric deflection and I have other two axis on top and right giving momentum and energy info. I am not able to write the...
  45. W

    Question regarding Michaelis-menten plot and equation

    Homework Statement I have a michaelis-menten plot and I need to see if it fits the chemical rate equation. Homework Equations J=JMAX ([S] / KM + [S]) The Attempt at a Solution I can get values for the entire equation from the plot. My idea was to choose a value of J and insert...
  46. S

    MATLAB MATLAB Simulink: Incomplete plot in scope

    Often, after running a model in Simulink, the graph displayed in Scope is incomplete.. ie the initial portion of the graph is missing and only a part of the final portion remains. If I open the scope window as soon as the model starts running then I can see the graph being plotted but after a...
  47. S

    Combining and normalizing functions in a plot

    I have the following formulae that I found: h[S_, H_, D1_] := (S*H)/D1; α[L_, D1_] := ArcTan[L/D1]; b[S_, B_, D1_, L_] := (S*B)/((D1^2 + L^2)^0.5); c[S_, B_, D1_, L_] := S*Tan[ArcCos[((D1 - B/2)^2 + (D1 + B/2)^2 + 2 L^2 - B^2)/( 2 Sqrt[(D1 - B/2)^2 + L^2] Sqrt[(D1 + B/2)^2 +...
  48. S

    Mathematica Plotting Binocular Disparity in Mathematica - Solve for f & d

    I calculated a binocular disparity \delta of two points, see also this topic, and got the following formula: \delta = Arctan(\frac{f}{D + d}) - Arctan(\frac{e}{D}) - Arctan(\frac{a - e}{D}) + Arctan(\frac{a - f}{D + d}) The assignment now says: Choose a = 6.5 cm, D = 40 cm and e = 3.25 cm...
  49. ShayanJ

    What does the slope of a semilog plot indicate?

    We had an experiment of charging and dicharging a capacitor in a RC circuit.Our instructor asked us to plot our data in a semilogarithmic paper.Then told us the formula of calculating the slope of such a curve.It was: \frac {[the vertical distance between two points measured by a...
  50. P

    Bode Plot - Calculating ωgc and ωpc analytically

    I am learning to draw Bode Plots. I am able to figure out ωgc, ωpc, Phase Margin & Gain Margin graphically from the Bode Plot. But I was wondering if there is a way to calculate ωgc and ωpc mathematically with some formulas - how do I do this?
Back
Top