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...
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...
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...
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
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...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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...
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
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}}...
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
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...
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...
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
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...
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...
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...
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...
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...
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...
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...
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?
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...
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 ?
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.
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...
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...
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...
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...
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...
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...
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...
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?