简体   繁体   中英

Creating MATLAB 3d plot

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM