【发布时间】:2018-05-23 11:55:43
【问题描述】:
给定一个定义的数字,我在生成热图时遇到了一些问题。 我正在研究两个表面(圆盘和圆柱)之间接触点的温度,与圆盘相比,可以将其建模为一维。
我有 3 组数据,1 组是圆盘的半径 (r),另一组是接触点的角度 (Theta),最后一组是发生摩擦的接触点的温度。
到目前为止,我能够在通过另一个程序获得的模拟中创建磁盘和不同点,这给了我以前的数据集。 我遇到的麻烦是当我想将获得的温度与它的点联系起来并根据它的温度给它一个色标时。我不知道如何建立这种关系。
正如我所说,这就是我得出的结论,这只是模拟结果给出的点的定义。
Theta = xlsread('Laiton1.xlsx',1,'G2:G3381'); % Parameter turning angle
r = xlsread('Laiton1.xlsx',1,'C2:C3381'); % Parameter radius
Tsurf_d = xlsread('Laiton1.xlsx',1,'E2:E3381'); % Temperature on the surface
x = r*cos(Theta'); % parametrical transformation of (r,Theta) for the X axis
y = r*sin(Theta'); % parametrical transformation of (r,Theta) for the Y axis
Theta1 = linspace(0,360,5000); % Angle to define the 2 circumferences of the disk
x1 = 0.0145*cos(Theta1); % X points for the inner circumerference
y1 = 0.0145*sin(Theta1); % Y points for the inner circumerference
x2 = 0.0475*cos(Theta1); % X points for the external circumerference
y2 = 0.0475*sin(Theta1); % Y points for the external circumerference
plot(X,Y,X1,Y1,'black',X2,Y2,'black')
【问题讨论】:
-
当你不提供任何数学或代码时,很难知道如何帮助你......请看stackoverflow.com/help/how-to-ask。
-
欢迎来到 Stack Overflow!请阅读How to Ask 和help center,并相应地改进您的问题。
标签: matlab matlab-figure heatmap disk temperature