That's too complicated. MatrixOut is intended to visualize the elements of a
matrix, but you really just want to visualize pairs (x_i,y_i). Just output
these one by one to a file:
ofstream output("M");
for (l=0...) {
...
output << w << ' ' << val << std::endl;
}
and then visualize the resulting data using gnuplot's "plot" command.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email:
bang...@colostate.edu
www:
http://www.math.colostate.edu/~bangerth/