Recent content by maxtor101

  1. M

    Green's Function fo a Boundary Value Problem

    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...
  2. M

    MATLAB Plotting a potential function in MATLAB

    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!
  3. M

    MATLAB Plotting a potential function in MATLAB

    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...
  4. M

    MATLAB Plotting a potential function in MATLAB

    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...
  5. M

    Calculating Force to Push Cylinder Over Another

    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...
  6. M

    Calculating Water Flow Time in a Tube | Gravity-Powered Flow Question

    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
  7. M

    Estimating torque conveyor belt

    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...
  8. M

    Estimating torque conveyor belt

    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...
  9. M

    How Do You Normalize a Function to Have a Maximum of 1 and Minimum of 0?

    Well yes, the maximum value would be \beta and the minimum value would be - \beta ..
  10. M

    How Do You Normalize a Function to Have a Maximum of 1 and Minimum of 0?

    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
  11. M

    Solving Heat Equation w/ Neumann BCs Different Domain

    Ah ok I see! Thanks for your help. So I can choose for example in case 1: A=0 , B=B . case2: B=0 , A=A
  12. M

    Help with integral of a gaussian function

    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...
  13. M

    Solving Heat Equation w/ Neumann BCs Different Domain

    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...
  14. M

    MATLAB MATLAB 3D Plot assistance needed

    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?
  15. M

    MATLAB MATLAB 3D Plot assistance needed

    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)...
Back
Top