Question: viewing/importing matrix/array data from maple

Hi,

I am a beginning user and have no idea how one can view or import a table structure in maple. I used a procedure to compute some tables and it frustrates me that I don't know how to get them out efficiently.

The procedure is like the following:

get_quantities:=proc(j1,j2)

local x_min, x_max, y_min, y_max, x_seg,y_seg,idx_x,idx_y, q1;

option trace;

x_min:=j1-1.5;

x_max:=1.5;

y_min:=j2-1.5;

y_max:=1.5;

x_seg:=(x_max-x_min)/4;

y_seg:=(y_max-y_min)/4;

for idx_x from 1 to 4 do 

for idx_y from 1 to 4 do

q1[idx_x,idx_y]:=int(int(i1(x,y,j1,j2),x=x_min+(idx_x-1)*x_seg..x_min+idx_x*x_seg),y=y_min+(idx_y-1)*y_seg..y_min+idx_y*y_seg);

end do; 

end do; 

return q1;

end:

here i1 is a function that I need to integrate. As you can see, I get q1 by running this procedure. But then I tried to do convert(q1, Matrix) and could get nothing.

I would love to know a way to do this. Something like in MATLAB, you can just type in the matrix name and it shows you the matrix elements.

Thanks.

 

 

Please Wait...