So, I have a matrix of values, since the rows correspond to datasets, and I want to build each of them using ListPlot, but I want to have a different x axis than the index. In Matlab, I would:
x = 0:4;
ys = [10 20 40 80 160;
20 40 80 160 320;
30 60 120 240 480]';
plot(x,ys)
and this will give three rows with x values ββ0-4, and the y values ββwill be each column.
The closest I can find in Mathematica
x = Range[0,4];
ys = {{10, 20, 40, 80, 160},
{20, 40, 80, 160, 320},
{30, 60, 120, 240, 480}};
ListPlot[Transpose[{x,

Is it correct? It seems a little cryptic. Hoping there is a feature or option that I am missing.
source
share