Results 1 to 2 of 2

Math Help - I have little problem with 3D plot in Maple

  1. #1
    Newbie
    Joined
    Apr 2010
    Posts
    1

    I have little problem with 3D plot in Maple

    Hi peoples,I have little problem with 3D plot in Maple
    I am build my function in this way:

    mu1(x,y) := (100e6*Transpose(Vector([300,0]))*(Vector([-10,-10])-Vector([x,y])))/(VectorNorm(Vector([-10,-10])-Vector([x,y]),2)*3e8);

    mu3(x,y) := (100e6*Transpose(Vector([300,0]))*(Vector([10010,10010])-Vector([x,y])))/(VectorNorm(Vector([10010,10010])-Vector([x,y]),2)*3e8);

    mu2(x,y) := (100e6*Transpose(Vector([300,0]))*(Vector([10010,-10])-Vector([x,y])))/(VectorNorm(Vector([10010,-10])-Vector([x,y]),2)*3e8);

    costf(x,y) := (2*775.6-870.67-897.06+(mu2(x,y)+mu3(x,y)-2 *mu1(x,y))^2) +(2*870.67-775.6-897.06+(mu1(x,y)+mu3(x,y)-2 *mu2(x,y))^2)+ (2*897.06-775.6-870.67+(mu1(x,y)+mu2(x,y)-2* mu2(x,y))^2);

    plot3d(costf(x, y), x = 0 .. 10000, y = 0 .. 10000);

    here I receive error masage:
    Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct.


    In addition, How I can send all constants that exist here (besides x and y) from Matlab.
    Thanks in advance!
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Jester's Avatar
    Joined
    Dec 2008
    From
    Conway AR
    Posts
    2,392
    Thanks
    56
    Quote Originally Posted by uravsem View Post
    Hi peoples,I have little problem with 3D plot in Maple
    I am build my function in this way:

    mu1(x,y) := (100e6*Transpose(Vector([300,0]))*(Vector([-10,-10])-Vector([x,y])))/(VectorNorm(Vector([-10,-10])-Vector([x,y]),2)*3e8);

    mu3(x,y) := (100e6*Transpose(Vector([300,0]))*(Vector([10010,10010])-Vector([x,y])))/(VectorNorm(Vector([10010,10010])-Vector([x,y]),2)*3e8);

    mu2(x,y) := (100e6*Transpose(Vector([300,0]))*(Vector([10010,-10])-Vector([x,y])))/(VectorNorm(Vector([10010,-10])-Vector([x,y]),2)*3e8);

    costf(x,y) := (2*775.6-870.67-897.06+(mu2(x,y)+mu3(x,y)-2 *mu1(x,y))^2) +(2*870.67-775.6-897.06+(mu1(x,y)+mu3(x,y)-2 *mu2(x,y))^2)+ (2*897.06-775.6-870.67+(mu1(x,y)+mu2(x,y)-2* mu2(x,y))^2);

    plot3d(costf(x, y), x = 0 .. 10000, y = 0 .. 10000);

    here I receive error masage:
    Warning, unable to evaluate the function to numeric values in the region; see the plotting command's help page to ensure the calling sequence is correct.


    In addition, How I can send all constants that exist here (besides x and y) from Matlab.
    Thanks in advance!
    Call in the linear algebra package

    with(LinearAlgebra);

    and try using brackets ( ) see in red below and use a dot . instead of a star *

     <br />
{\color{red}{(}} Transpose(Vector([300,0])) {\color{red}{).(}} (Vector([-10,-10])-Vector([x,y]))) {\color{red}{)}} <br />
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Help to plot a complex function in Maple
    Posted in the Calculus Forum
    Replies: 0
    Last Post: April 1st 2011, 01:19 AM
  2. How to plot a complex graph in Maple
    Posted in the Math Software Forum
    Replies: 0
    Last Post: April 1st 2011, 01:10 AM
  3. maple box plot fences
    Posted in the Advanced Statistics Forum
    Replies: 0
    Last Post: June 14th 2009, 06:33 PM
  4. Maple 12/ Sigma Plot 11.0
    Posted in the Math Software Forum
    Replies: 0
    Last Post: June 6th 2009, 06:33 PM
  5. how to plot a graph in maple 11
    Posted in the Math Software Forum
    Replies: 0
    Last Post: March 27th 2008, 11:11 PM

Search Tags


/mathhelpforum @mathhelpforum