Plot Definition and 717 Threads

  1. A

    MATLAB Creating 3D Scatter Plot in Matlab - Ashley, IU Chemistry

    Hello I am very new to Matlab and need help on importing my data for a 3D plot. Currently, I have x,y,z data that I am trying to import to look like Figure 5 in the following paper: http://www.nature.com/nmeth/journal/v4/n5/fig_tab/nmeth1038_F5.html I have no idea how to import the...
  2. B

    How do I determine the y values for the tail of a vector function plot?

    Hi How do I plot this vector function F(x,y) = i + cos x j where i and j are unit vectors Spose I take x = 0, then the components in i and y direction are 1, 1 x = pi/4, then " " 1, 1/sq rt 2 x = pi/2 " "...
  3. F

    Understanding ParametricPlot in Mathematica: Deciphering Parameters and Ranges

    Homework Statement On Mathematica. Let's say I want to plot y = 4 - x x = 6, x = 0 So a parametric equation would be y = 4 - t x = t So I tried ParametricPlot[{y = 4 -t, x = t},{t,0,6}] But the range (the t values) aer only expanding the y-values.
  4. S

    MATLAB What are some tips for debugging MATLAB plots?

    Dear friends I M. Saravanan, currently working in MATLAB attempting to plot some solutions of the differential equations. When plotting I received a command "Warning: Matrix is singular to working precision" for the solution step in the M files. Since as a beginner this statement make me to...
  5. R

    MATLAB Contour Plot in Matlab: DATA COLLECTED vs TIME in date and hours

    Hello, All. Thank you in advance for any help, contribution and your time. I have been asked to do a contour plot with a data vs time (date and hours), I am new with Matlab and I don't really know how to make this date and hour in a time series vector to do my contour plot. I have added the data...
  6. K

    Plotting Bode Magnitude & Phase Plots By Hand

    How would you plot the magnitude and phase Bode plots for the system transfer function of (4s^3+40s^2)/(4s^4+405s^3+504s^2+400s) I plugged it into MATLAB and got a result but my professor wants hand calculations. Thanks
  7. M

    MATLAB How to Correctly Plot 1/Sqrt(1-(v²/c²)) in Matlab?

    Hey everyone, I'm trying to create a plot in Matlab but just keep getting errors. It works very well in Mathematica but I want to learn some Matlab. However with all the errors I get I will probably stay with Mathematica. Maybe someone here can help me out. So, I'd like to create a plot of...
  8. C

    Statistics help - Scatter plot, regression

    Statistics help -- Scatter plot, regression Homework Statement Consider the following data set for ten first grade students; the variables are the number of minutes spent learning a list of spelling words and the number wrong on the spelling test. [15 points total] (supposed to be a...
  9. N

    Plot a graph to verify the inverse square law and use the graph to estimate ?

    Hi, I know that this is my first post, but please help me! I am having trouble with the following question "The following data was collected from an experiment to measure the gamma ray count-rate at different distances from a sample of cobalt-60 The background count was measured five...
  10. T

    MATLAB Matlab/Octave Scatter Plot: Visualizing Collatz Conjecture for x=1 to 1000

    How do I plot (x, collatz(x)), where x in an integer between 1 and 1000 inclusive, on a scatter plot? function c = collatz(n) c = 0; while(n != 1) if(mod(n,2) == 0) n /= 2; else n = 3 * n + 1; end c++; end end
  11. A

    Plot of energy against space-time

    Plot of energy against space-time (from alpha to omega) I was wondering what a plot of energy against space-time would look like going from alpha to omega, using the assumption that the universe is heading towards an omega of flat absolute zero. I came up with a guess of this...
  12. E

    MATLAB MATLAB Plot function of two variables on 2D Grid

    Hey all - this is my first post on the forum but I've browsed for help for a really long time on other topics. Any help would be greatly appreciated! So I have a function, called stability.m that takes in two independent variables, say x and y, as input and outputs either a 1 or a 0 for each...
  13. H

    Stress-Strain Graph:Why Plot Strain~Stress?

    I have a very fundamental doubt regarding the stress strain graph for many materials..Normally we plot strain ~stress in the graph..but it seems that stress is the independent variable and strain is the dependent variable..but still why nowhere i have found the curve as stress~strain..can...
  14. M

    Creating a Multi Bar Plot in Matlab with Zeros and Proper Legends?

    Homework Statement I have a 6 x 16 data frame "y" which stands for 16 different soil types at 6 different depth as followings 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.37 0 0 0.50 0 0.03 0.03 0 0 0.02 0.05 0 0 0 0 0 0.26 0 0 0.34 0 0.02 0.02 0 0 0.33 0.03 0 0 0 0 0 0 0 0 0 0 0 0 0...
  15. A

    Mathematica Rasterized density plot + countour plot in Mathematica (to solve EPS issues)

    Dear All, I am plotting a density and a contour plot of the same function in order to have a smooth shading in the background of the contour lines. I do this using "Show[DensityPlot[...], ContourPlot[..., ContourShading->None]", like the following example given by Mathematica help files...
  16. P

    Combining errorbar() and plot() in same figure?

    I'm having a little trouble figuring out the MatLab GUI stuff... I'm not used to the way MatLab does things. At this point all I'd like to do is combine an errobar() and a plot() in the same figure, how would I do this? Thanks!
  17. ChristinaJ

    Mathematica Mathematica - Label plot ticks using strings

    All, I have a ListSurfacePlot3D graphic and wish to label the tick marks using strings. For example if I have X={x1,x2,x3} I would like to label each tick mark at that point with a string, i.e. x1="a", x2="b" etc. I would also like to know how to take a list of strings and distribute them...
  18. A

    Mathematica Import and plot multiple data sets in Mathematica

    I have a dat file with multiple data sets, with the following structure: # t = 0.0 , ... -10.000 0.00001 1.000001 ... -9.000 0.00002 0.900001 ... ... 10.000 0.00005 1.000001 ... # t = 0.2 , ... -10.000 0.00301 1.000203 ... -9.000 0.02222 0.900043 ... ... 10.000 0.00025 1.000551...
  19. F

    Does anyone know how set the range and plot?

    Homework Statement In Mathematica, how do you set the range for the z-axis and how to implicity plot 3D graphs without writing them as f(x,y) or f(x,y,z)? Also is it possible to make the graph show the axis?
  20. ChristinaJ

    Mathematica Mathematica: Plot time evolution data in 3D

    Hi all, I have 3 lists of data where lists; A={numbers}, B={numbers} and C={{y,m,d,h,m,s},{...}} (i.e. C is in the form DateList). I have no problem plotting using DateListPlot for the 2D case (C VS A) but can't seem to plot all 3 sets of data together. Mathematica seems not to be able...
  21. B

    Mathematica Mathematica Spatial 3-D List Plot

    I want to plot a list of points where each element is of the form {x,y,z} so that the list is like: { {x1,y1,z1} , {x2,y2,z2} , ... , {xN,yN,zN} }. And I want to connect a line between each consectutive pair (i.e. {x(i-1),y(i-1),z(i-1)} & {x(i),y(i),z(i)} ). Unfortunately, its not as...
  22. M

    Mathematica Plot 3D matrix as 2D plot and 3rd dimension as color in Mathematica

    Hi! It's been like two days since I have tried to make this work, still I got nothing. Searched Google etc. but no help there. I have a three dimensional matrix in form of {{a,b,c}, {d,e,f}, {g,h,i}, ... etc. } with a total of 51 elements, i.e. 51x3 matrix. What I want is to plot it as...
  23. 1

    MATLAB Matlab Pwelch: Changing Units of Plot - Urgent Help

    Hi, I am simulating vibrations in simulink and processing my results in matlab. I am trying plot the PSD for my acceleration results using pwlech method. When I plot the PSD plots from the methods below (NOTE:I have a sampling rate of 0.006 so that means I am using a sample frequency of...
  24. J

    Bode Plot Question(Phase and Gain Margin)

    I have been drawing a few bode diagram by hand and i am ask to find the phase and gain margin of the plot. Can someone please explain what are phase and gain margin, including how to determine it from the bode plot?
  25. J

    Creating Bode Plot: Problem Determining Break Off Frequencies

    I am trying to manually make a bode plot for the transfer function: G(jw)= 5/[jw(1+jw0.6)(1+jw0.1)] I know how to plot it but I am having a problem determining all the break off frequencies. In particular for the term pole at (1+jw0.6). Could someone give...
  26. R

    Exploring the Physical Meaning of a Harmonic Oscillator Probability Density Plot

    Homework Statement I'm talking about the probability density plot of the harmonic oscillator. Is there some physical meaning to be extracted from this? Here's a link that contains the drawing of what I'm talking about http://hyperphysics.phy-astr.gsu.edu/hbase/quantum/hosc5.html...
  27. T

    Drawing a Frequency-Magnitude (Bode) Plot: Thomas's Questions

    I need to draw a frequency- magnitude (bode) plot of this circuit: Firstly I need to find the RC but I don't have a clue. It's meant to be 1ms, and I guess that's from 10k * 100nF BUT why is the 20K not involved? Thanks Thomas
  28. F

    MATLAB How to Plot Multiple Matrices with Different Colors in Matlab?

    Hey guys, I'm having some trouble plotting a matrix. I have a cell in which I've put four matrices. These matrices are variable in length: they are nx2 with n starting on 31 and varying from 0 to 120. De first column of each matrix represents the x-coordinate and the second column represents...
  29. J

    Improving Lines in High Res Multi-Lined Coloured Plot

    I have a multi-lined coloured plot in which I need some lines represented by dashed lines ('linestyle', ':') and I also need my plot to be quite a high resolution (dpi) for publication reasons (print -r600 -dtiff myfile.tif). So this works fine but when I open the tiff file with high resolution...
  30. K

    MATLAB Nyquist Plot Help: Transforming Numerator to Transfer Function"

    i understand that the "nyquist" command in MATLAB requires one to key in the transfer function.. however, i am stuck here as i am unable to form a transfer function from the following numerator and denominator: num = s-3/2-1/2*(-24*s+1)^(1/2) den = 1.25*s^2 +3.75*s + 2.5 i know that...
  31. R

    Mathematica Mathematica: Plot using abstract variables instead of set values

    Hi All, Does anyone know of a way to make plots in mathematica in terms of variables? For example, suppose you had a function sin(a*x), and you wanted to plot it but did not want to set a to a specific value, the purpose being to have the graph report multiples of a, not specific numbers...
  32. D

    Mathematica How to get a plot from Mathematica to Latex (in laymens)

    OK. Could somebody please tell me how to get a graph/plot from Mathematica into WinEdit. I've seached on the internet and it all talks about source codes and a lot of other stuff I don't understand. Copy and paste does not seem to be an option! Could some one exlpain to how to do it...
  33. B

    Mathematica Mathematica Connecting Plot Points

    Given a set of points in a list how can you not only plot them (which I know how to do) but how can you connected a line between each successive pair of points. i.e. { {Point1},{Point2},{Point3},...{PointN} } so that Point 1 has a straight line connecting to Point2, 2 to 3, 3 to...
  34. R

    Finding Maximum Peaks in a Program Plot

    Hi there. I am having some problems trying to find maximum peaks in my program. I plotted out my time vs. current graph. I need to find the maximum peaks. So i started off by setting a threshold of 0.05. After finding values which has a threshold of above 0.05, i plotted them...
  35. P

    MATLAB Matlab Scatter Plot: Adding Colored Point

    I have a scatter plot of data already created. I want to add a different colored point to the plot at specific coordinates. How can I do this? I tried using hold on, plotting my data, then writing scatter(1,0,r) hold off to plot a red point at (1,0) but its not working.
  36. R

    Connecting plot points from nested loops

    Here's small part of a project I'm working on. The code is not part of the grade. I'm just doing this for my own benefit and I figured that MATLAB can do the plotting automatically for me. Calculate the Mach number at each of the three altitudes for mdotf=.1, .2, .3, .4, .5, .6, .7 The flight...
  37. I

    Mathematica How to Specify Tick Number and Distance in Mathematica Plot?

    Hello, does anyone know how to specify the number of ticks to be labelled in a plot at an equal distance, without writing the list of positions explicitly? Thanks!
  38. T

    Finding Derivatives for Bicycle Trajectory Plot in 2D

    Homework Statement Recently I met a Mathcad calculation plotting bicycle path traveled. Initial positions of tire tracks are known, their increments were calculated with bike speed 'v', wheelbase 'p', and steering angle 'a' so via ODE system solving front and rear tracks coordinates were...
  39. S

    Mathematica Create a Colorful Plot with Mathematica's ListPlot Function"

    If I have a list; list={ {{1, 2}, {1, 3}, {1, 5}}, {{2, 2}, {2, 4}, {2, 1}}, {{3, 3}, {3, 5}, {3, 2}} } and want to plot it using ListPlot[list] Is it possibe to colour all the 1st pairs of the list e.g. {1,2}, {2,2}, {3,3} blue, {1,3}, {2,4},{3,5} green and {1,5}, {2,1}, {3,2} red using...
  40. C

    How do you plot complex functions

    Homework Statement Draw graphs of V(x)=\frac{x^2}{1+x^4} and y=\pm\sqrt{2cosx-4\epsilon x+B} Homework Equations The Attempt at a Solution Are we really expected to be able to draw these with just a pen and paper!?
  41. B

    Quick MATLAB help -> Setting a termination point on a plot.

    Quick MATLAB help --> Setting a termination point on a plot. I have this kinematics problem on dropping a ball from a building a few meters high. When I plot the position vs time graph, it starts at let's say 50 meters high, I get a plot of an upside down parabola, as expected, but my plot...
  42. E

    MATLAB Matlab - simple plot where 0<x<5

    Hi This has got to be easy but I can't find the answer anywhere. How can I use 'plot' where the x-axis does not include the end points 0 or 5? All the examples I see are things like x=[0:0.1:5]. Thanks in advance.
  43. S

    MATLAB MATLAB: Plotting help, turning 2D plot into 3D volume of revolution

    Hi I have an issue I am trying to solve, so far I haven't managed to get past it. I have some data for 200 points in theta from 0 to 2PI. The data is spherically symmetric so there is no phi dependence. Basically what I want to do is turn the 2D plot into a 3D by revolving the 2D plot. My...
  44. S

    Why Are My Bode Plot Results in MATLAB Different from LTSPICE?

    Homework Statement I'm working on a Lab for my Electronics Course and need to use MATLAB to create a Bode Plot to get the data for my theoretical Magnitudes at frequencies between 50Hz and 500 Hz. The Resistor has a value of 1k and the Capacitor has a value of 1uF. I need one for both a high...
  45. G

    Mathematica How do you plot a 3D vector in Mathematica 8?

    For example, how would I plot the fixed vector <3, 4, 3>? I'm not sure if I'm using the correct language; I mean the vector with its tail at (0, 0, 0) and head at (3, 4, 3).Also, how would I plot the plane 11x + 19y + 39z = 88?
  46. C

    Mathematica Mathematica plot envelope data smoothing

    The following Mathematica code generates a highly oscillatory plot. I would like to plot only the lower envelope of the plot but do not know how. Any suggestions wouuld be appreciated. tk0 = \[Theta]'[t]*\[Theta]'[t] - \[Theta][t]*\[Theta]''[t] tk1 = \[Theta]''[t]*\[Theta]''[t] -...
  47. D

    Plot xy, coords to create a circle with centrepoint and radius

    Hey all, I posted this in a thread with similar discussions but thought to make a new one. Skip to the last two sections if you're in a rush :) About me ------------ I did maths in high school and stats in university but I can't work some (probably elementary) sin / cos / tan stuff out...
  48. T

    Mastering Dalitz Plot Analysis

    What is the best references to study Dalitz plot ?
  49. C

    Mathematica Mathematica - Find max value NDSolve Plot

    Dear forum members: After numerically solving a differential equation and plotting the results I would like to determine the single maximum value in the plotted range but do not know how. The code below works for numerically solving the differential equation and plotting the results...
Back
Top