matlab:如何使用数组来着色图 [英] matlab: how to use an array for coloring a plot

查看:341
本文介绍了matlab:如何使用数组来着色图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有3个数组中的一组三维坐标 X Y Z ,每个点的温度 T 。我想将点绘制为点云,使得每个点将具有根据其温度的颜色。类似于您可以在 trisurf 中指定颜色的方法。

I have a set of 3d coordinates in 3 arrays X, Y, Z, and the temperature T at each point. I want to plot the points as a point cloud, such that each point will have a color according to it's temperature. Something similar to how you can specify colors in trisurf. How do I do that?

推荐答案

您可以使用 SCATTER3

scatter3(X,Y,Z,12,T);

这篇关于matlab:如何使用数组来着色图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆