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...
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 " "...
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.
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...
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...
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
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...
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...
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...
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
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...
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...
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...
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...
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!
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...
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...
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?
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...
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...
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...
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...
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?
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...
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...
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
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...
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...
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...
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...
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...
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...
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...
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.
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...
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!
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...
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...
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!?
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...
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.
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...
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...
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?
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] -...
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...
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...