Recent content by quin

  1. Q

    How can I calculate binodal line T-V with simulation result?

    Hi all I am running a NVT simulation for some structure and want to draw the phase diagram for T vs V. In my code I set some special value for temperature and also for volume. Also I have the analytic formula for my interaction potential. But I don't know how I can draw the binodal line for...
  2. Q

    Mathematica Problem in reporting contour plot mathematica

    thanks but I have mathematica 7 and when I type that code, it gives error that unknown plotlegends in contourplot ! however, I write : needs"plotlegends'" too.
  3. Q

    Mathematica Problem in reporting contour plot mathematica

    how can I put "PlotLegends -> Automatic" in CountorPlot? I search google but I couldn't find anything suitable for the above code ! Iwant mathematica to find plotlegend in an automatic way, not by writing for example 1 to -1 thanks
  4. Q

    Mathematica Problem in reporting contour plot mathematica

    thank you but how you can understand that you must put 1 to -1 for that range? I don't Know how to estimate the range of color data? thanks alot
  5. Q

    Mathematica Problem in reporting contour plot mathematica

    Dear friends I plot a Contour plot from a function with mathematica, but I don't know how can I add a small box near my figure that explain which value refer to which color? I put my code below, please help me with adding colordata to my code for having reference for colors. t = 0.01...
  6. Q

    MATLAB Fit data with function in MATLAB

    polyfit and if I want to fit my points with such a finction: y=(x-a)^n + b what should I type in polyfit? I mean I have some x and y values but I find the relation between x and y in a way that I have a function like y=(x-a)^n + b and then I want to find the exact value of a,b, n? thanks
  7. Q

    MATLAB Fit data with function in MATLAB

    Dear users I have some points with coordinate x and y forexample : x=[1 2 3 4] and y=[2 4 6 8] and then I want to fit these 4 pair of points with some function for example y=a*x+b (here I know that the answer is a=2 and b=0) what should I...
  8. Q

    MATLAB Problem in triplequad in matlab

    thanks but my function is very complex and in this way MATLAB cannot do anything.In fact it said that the integral cannot be calculated How can I do the integral numerically but with 2 symbols? I mean that integrate over x ,y,z with a numerical method but with 2 symbols of t and m . thanks...
  9. Q

    MATLAB Problem in triplequad in matlab

    symbolic triple quad I want to get 3variable integral from a function which is in terms of x,y,z,L,T but I"T" and "L" are just symbols and want to integrate over x ,y,z How can I take triple integration from a symbolic function?? thanks alot
  10. Q

    How to Use Trapezoid Method with 3 Loops in MATLAB for Numeric Integration

    thanks for your guide But it seems that you didnt understand what I meant.Let me tell you in another way forget about that special 12*12 matrix or even 4*4 matrix we have one matrix in terms of x,y,z, we want its eigenvalues and after finding them( which are still in terms of x,y,z) we want t...
  11. Q

    How to Use Trapezoid Method with 3 Loops in MATLAB for Numeric Integration

    my main matrix that is 12*12 is complex for MATLAB to find its eigenvalues.in above code I just wrote this 4*4 as an example for explaining my purpose. matlab cannot find its eigenvalues in terms of x,y,z
  12. Q

    How to Use Trapezoid Method with 3 Loops in MATLAB for Numeric Integration

    No my matrix is defferent in size forexample 12*12 and… but I now just write the 4*4 matrix that is simple and want to test code I wrote a code and want to tell my purpose easier This is all the thing that I want to dos=[ ] 4*4 matrix in terms of x,y,z s1 , s2,s3,s4 are its eigenvalues I...
  13. Q

    How to Use Trapezoid Method with 3 Loops in MATLAB for Numeric Integration

    theanks a lot but the thing that make my problem hard is that I don't have an explicit function in terms of x,y,z. My function will be made through those sums of integral. see, I have one matrix that I must do set of algabric operation on its eigenvalues and after finding an expression in terms...
  14. Q

    How to Use Trapezoid Method with 3 Loops in MATLAB for Numeric Integration

    thanks a lot but sorry it has some errors that I don't know how to solve them would you mind cheking your code? and also what is the form of funhandle that I must write in function? forexample if I write :myTrap(x,[0,1],100) it takes errors. thank you
  15. Q

    How to Use Trapezoid Method with 3 Loops in MATLAB for Numeric Integration

    dear users I want to do a triple integration over x ,y ,z in MATLAB but because my expression under the integral is so complicated I want to change integrals to sum by Trapezoid method using a loop in MATLAB but for doing that I have 3 integrals and so 3 for loops for summing over x , y , z...
Back
Top