Reputation: 1101
I have a matrix let it be called ARR
size(ARR) = 3600 x 140
Where it stands for 3600 seconds, 140 nodes, and in each place ARR(t,n) = value
How to create a 3d plot to show this ARR?
When I do surface(ARR)
I get nothing, and when I do plot(ARR)
I get 140 lines.
How in plot(ARR)
can I add legend to know which line has which color.
Upvotes: 0
Views: 236
Reputation: 5188
You can for instance use surf(ARR)
or mesh(ARR)
. See the documentation for further usage.
For your plot problem you can use legend
but it may not be very handy with 140 curves.
Upvotes: 2