Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想绘制一些类似于以下产生的 3D 数据:
[X,Y,Z] = peaks(30); surf(X,Y,Z)
但有一点不同。出现在上述曲面图上的等值线会发生变形,以便它们“拉伸”以匹配 Z 轴的变化。有谁知道如何生成曲面图,但等值线看起来好像规则间隔的网格已经“覆盖”在曲面上?我假设指定数据的网格将不再是单调间隔的,但我不确定如何继续。
你在找griddata吗?仔细看看那里的第一个例子:“Interpolate Scattered Data Over a Uniform Grid”。
griddata