plot - plotting an array of dataset with ListPlot Mathematica -


I have a set of datapoints such as (this is an example)

  val = 4; (* This value is calculated first in the program, so it is not a priority *) x = {0,1,2,3}; Data = table [0, {val}]; Data [[1]] = {1,5,6,8}; Data [[2]] = {9,7,1,3}; Data [[3]] = {3,4,5,6}; Data [[4]] = {2,2,4,6};  

Now I can plot each of these data with list plot

  ListPlot [Transpose [{x, data [[1]]} ]]  

And if I want to plot more than one then I can

  ListPlot [{Transpose [{x, data [[1] ]]], Tropz [{X, data [[2]]}]}]  

But by considering what kind of plot, I can do? / P>

Is there any way to do something like this

  [i = 1, i < Val + 1, I ++, Listplate [Transges [[X, Data [I]]] ...... ......  

One with all the curve Is the graph?

In fact, I would like a constant picture of

P> You want to "do the same thing" for each element of the list. You should think about using the map. The data is given in your list and each element is the novelist of your four elements. If you look at the help page for the map, it shows that you need to think about a function that you need to do with each person's novelist. You already have understood that you have transitioned with X and There is a need to use your sobilist so that you can tell your work and you are almost there. Map results will be a list of all those results. Then in

  [1]: = x = {0, 1, 2, 3}; Data = {{1, 5, 6, 8}, {9, 7, 1, 3}, {3, 4, 5, 6}, {2, 2, 4, 6}}; List Plot [Map [transpose [{x, #}] and, data], included -> True] out [3] = ... four overvalued snap ...  

Go through one word at a time, as long as you can understand the thought of writing it Be able to If you keep using the femamika, then you will use this idea repeatedly.


Comments