plot of plsquares polynom



Looks like the return value of plsquares is an equation z = ....
Try something like

foo : plsquares (...);
plot3d (rhs (foo), [x, ...], [y, ...]);

HTH

Robert Dodier


On 2/1/12, Jan Hendrik M?ller <jan.mueller at math.uni-dortmund.de> wrote:
> Hi all,
> two questions:
> - how can z be plotted? plsquares works fine but the plot doesn't work
>      load("plsquares")$
>
> plsquares(matrix([1,2,0],[3,5,4],[4,7,9],[5,8,10],[1,3,4],[2,5,7],[1,6,9],[3,1,4],[1,1,1],[4,3,6],[6,7,8]),[x,y,z],z,3,3)$
>      plot3d(z, [x,0,9], [y,0,9]);
> - the rows of the matrix (only as an example) have to be substituted by
> the lines of the .txt file attached. Any idea how to realise that is welcome
> Jan
>