JackLe

10 Reputation

One Badge

6 years, 258 days

MaplePrimes Activity


These are questions asked by JackLe

I have 3 lists of equal length:

A:=[1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4,5,5,5,5,5]
B:=[1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5]
C:=[5,2,7,9,1,6,2,8,4,6,2,1,5,8,3,5,2,9,6,6,3,2,1,6,4]

I would like to make a 3-D plot of C dependent on A and B (Ex. C(1,1)=5, C(1,2)=2.. C(5,5)=4).

 

What would be the best way to plot this? I have tried 'pointplot3d' which returns a decent result, but I would prefer a filled plot if possible.

I currently have a list 2 elements long filled with lists 6 elements long similar to the following:

A := [[0, 1, 2, 3, 4, 5], list[0, 2, 4, 6, 8, 10]]

I would like to output 'A' (my list of lists) to a text file to look like the following:

0   0

1   2

2   4

3   6

4   8

5   10

 

Currently my code looks like this

L := [ ];
M := [ ];
for i from 0 to 5 do L := [op(L), 2*i]; M := [op(M), i] end do;
A := [M, L];
writedata(test, A, float);

 

Which provides me with almost what I need, but written horizontally instead of vertically:

0    1    2    3    4    5
0    2    4    6    8    10

 

How do I alter the code so that I can read my values vertically?

Page 1 of 1