Homework Statement
L[y] = \frac{d^2y}{dx^2}
Show that the Green's function for the boundary value problem with y(-1) = 0 and y(1) = 0 is given by
G(x,y) = \frac{1}{2}(1-x)(1+y) for
-1\leq y \leq x \leq 1\
G(x,y) = \frac{1}{2}(1+x)(1-y) for
-1\leq x \leq y \leq...
Apologies, I got it working[phi1, phi2] = meshgrid(-20:0.5:20);
lam = 1;
m = 1;
V = (m^2)*(phi1.^2 + phi2^2) + lam*(phi1.^2 + phi2.^2).^2 ;surf(phi1, phi2, V)
thanks for your help!
Thank you for your reply!
phi1 = [-20:0.5:20];
phi2 = [-20:0.5:20];
lam = 1;
m = 1;
V = (m^2)*(phi1.^2 + phi2^2) + lam*(phi1.^2 + phi2.^2).^2 ;
surf(phi1, phi2, V)
I tried this but I get the following error:
Error using ^
Inputs must be a scalar and a square matrix...
Hi all,
I would like to be able to plot this function in MATLAB \mathcal{V} (\phi_{1}, \phi_{2}) = m^2(\phi_{1}^2 + \phi_{2}^2) + \lambda( \phi_{1}^2 + \phi_{2}^2)^2Where \phi_{1,2} , m^2 , \lambda \in \mathbb{R} and \lambda > 0 I am aware that the cases m^2 > 0 and m^2 < 0 yield two...
Hi all,
Say I have two hollow cylinders as show in the diagram. If I know the coefficient of friction between the two materials, the radii of the two cyclinders, how would I go about calculating the force to push the top cylinder over the other a distance x in t seconds?
Also assume that...
Hi all!
If I had a tube with diameter x cm, filled with water, how would I calculate the time it takes for a volume V of the water to pass a point in the tube, flowing completely due to gravity.
Thanks
Apologies, I forgot to include in the diagram that there is a steel table under the belt, on which the items sit. So there would be friction between the belt and this table, and it's resulting force will be proportional to the weight of the objects.
How would I equate all this to the torque...
Hi all, was wondering could anyone give me a hand with this calculation.
So basically I want to estimate the torque required to turn a conveyor belt. I have drawn a diagram of what it looks like. I know the weight of the objects on the belt and their respective friction coefficients. Also the...
Hi all,
Say if I had a function for example p(x) = \beta \cos(\pi x)
And I wanted to alter it such that the max value of p(x) is 1 and its minimum value is 0.
How would I go about doing this?
Thanks for your help in advance!
Max
Hi all!
I'm curious as to how one would go about actually computing this integral
\int_0^\pi \exp(\frac{-x^2}{2c^2})\sin(\frac{m\pi x}{2}) dx
I start off by using integration by parts but I am unsure how to solve this integral
v = \int_0^\pi \exp(\frac{-x^2}{2c^2}) dx
Any help...
Hi guys!
I'm to find the solution to
\frac{\partial u}{\partial t} = \frac{\partial^2 u}{\partial x^2}
Subject to an initial condition
u(x,0) = u_0(x) = a \exp(- \frac{x^2}{2c^2})
And Neumann boundary conditions
\frac{\partial u}{\partial x} (-1,t) = \frac{\partial...
But this throws up an error ? Error using ==> mesh at 80
Z must be a matrix, not a scalar or vector.
Error in ==> plots at 14
mesh(X,Y,Z,'EdgeColor','black')
Any ideas?
Thanks for your reply, however I'm still unsure as to handle the 6 different text files.
load plot1.txt
load plot2.txt
load plot3.txt
load plot4.txt
load plot5.txt
load plot6.txt
for i=1:6,
[X] = meshgrid(0:10:60);
[Y] = meshgrid(0:5:100);
[Z] = plot(i)...