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.
我在整个水柱中记录了一些温度测量值:
depth = 0.2211:0.26:26; temp = 1 + (30-1)*(rand(1,length(depth)));
深度不连续的地方。我想以 0.5 m 的深度增量创建温度曲线。为了实现这一点,我首先创建了一个从最小到最大测量深度的均匀间隔点数组:
newD = min(depth):0.5:max(depth);
接下来我想从每个新深度的“温度”中获取温度,我该怎么做?
评估
newTemp = interp1(depth,temp,newD)
您可能想尝试使用 4th 输入interp1,查看文档。
interp1