Recent content by musicgirl

  1. M

    Mathematica Using 2 color functions in a mathematica matrix plot

    I'm trying to use 2 color functions within one matrix plot in mathematica. Is this possible to do? For example, using a very simple matrix: test = Partition[Table[i, {i, 1, 9}], 3] I would like to make the even numbers vary in color increasing from white to red; and the odd numbers vary...
  2. M

    Mathematica Mathematica calling module from NDSolve

    Hi, I want to use a module to repeatedly calculate a parameter in NDSolve, but I seem to be having trouble. Here is a simplified version of what I'm doing. In this example, I want to use the difference between v1 and v2 at a given timepoint to calculate the connection between v1 and v2 for...
  3. M

    Mathematica Mathematica: Problem with For loop increments

    Thank you very much, that was very helpful! That was along the lines of what I was thinking, but didn't know how to fix it. Thanks again.
  4. M

    Mathematica Mathematica: Problem with For loop increments

    I'm having a recurring problem in mathematica when I try and introduce a simple for loop. For instance, I have the code shown below. It should increment my var value, and calculate a value of 'initial' for each 'var' value. These should then be recorded under the name RMPvalue[var] so I can...
  5. M

    Mathematica Find all roots of an interpolating function in Mathematica

    Hi, I've got an interpolating function which has been generated from using NDSolve and I'm trying to find all the values of x for which the y value is equal to 2. I've constructed a (much) easier example to show what I mean. Suppose I have a set of points which I have generated an...
  6. M

    Mathematica Mathematica: Export sequence of MatrixPlots

    Sorry for the lack of details in my previous post - I wrote it in a bit of a rush. Copying what you wrote exactly, I reproduce your results and can generate the movie of images as you described. So I have removed the "monitor" element from my actual code and can now generate the avi movie I...
  7. M

    Mathematica Mathematica: Export sequence of MatrixPlots

    Yep, sorry I did mean {i,nn}. Using Table[MatrixPlot[{Table[First[Evaluate[y[cc] /. s]], {i, nn}]}], {cc, 1, cmax, 0.5}] I get the correct set of images that I need. I have no problems exporting those as a stack of images (which I could then of course group together into a movie in another...
  8. M

    Mathematica Mathematica: Export sequence of MatrixPlots

    I've constructed a visualisation of the solution of an equation over time as a sequence of MatrixPlots and I'd like to export this as a movie for use in a presentation, but whatever file extension I try, I either get an error message (e.g. "The Export element \!\(\"GraphicsList\"\) contains...
  9. M

    Mathematica How to Create Custom Tables/Matrices in Mathematica?

    Hi, I'm trying to make a table/matrix in mathematica to describe a system of differential equations that I have. At the moment, what I want is a table with the first column reading (A*v*(1-v)*(1-a)-w-w0)/e and the second column reading v-g*w-v0 and I want to be able to arbitrarily...
  10. M

    Mathematica Mathematica: Find Maximum Value of Interpolating Function

    That works great, thanks. Just the [[1]] at the end of fitz1[[1]] I was missing. That seems to be the way with Mathematica!
  11. M

    Mathematica Mathematica: Find Maximum Value of Interpolating Function

    Hi everyone, I'm pretty new to Mathematica, and I'm trying to find the maximum value of an interpolating function. I'm looking at Fitzhugh-Nagumo dynamics and below is what I have so far. My 'fitz1' gives me 4 variables each described as an Interpolating Function, and I would like to find...
Back
Top