フィルターのクリア

Ploting temperature evolution in a multi-layer tyre

6 ビュー (過去 30 日間)
Jan Soller
Jan Soller 2023 年 10 月 24 日
編集済み: Mathieu NOE 2024 年 2 月 8 日
Hello,
I'm looking for a graphical representation of temperature changes in a tyre. My simulink gives me the real time temperatures of my 300 layers in a spreadsheet called "temperatureData" but I'm now trying to represent the 300 layers of the tyre according to their temperature using a colour scale as shown in the image above. I've tried several methods but I can't get anywhere. If anyone has an idea or a code proposal that might be suitable I'd be happy to discuss it and see what they come up with !
I'm also copying an excel of the temperature as an example (a shorter version).
Thank you in advance for your help.

採用された回答

Mathieu NOE
Mathieu NOE 2023 年 10 月 24 日
maybe this ?
I assumed your data has columns = layers and the rows spans the angular position between 0 and 2pi
as a result , a nice donut but does it represents really a tire?
A =readmatrix('temperatureData.xlsx');
[m,layers] = size(A); % rows = angular position (0 to 2pi), columns = layers
da = 2*pi/m;
angl = (0:da:2*pi-da)'*ones(1,layers);
% tire defined by inner radius ri and outer radius ro (units ??)
ri = 100;
ro = 200;
r = ones(m,1)*linspace(ri,ro,layers);
% create X,Y meshes
X = r.*cos(angl);
Y = r.*sin(angl);
% plot
surf(X,Y,A);
shading interp
view(2)
axis square
  4 件のコメント
Jan Soller
Jan Soller 2023 年 10 月 30 日
編集済み: Jan Soller 2024 年 2 月 6 日
Hello Mathieu,
Thanks a lot for your help, it is exactly what I was searching for and the result looks really impressive!
Adding the video recording is also just perfect, as I can accelerate it in post-processing.
Thanks again and I wish you all the best,
Mathieu NOE
Mathieu NOE 2023 年 10 月 30 日
my pleasure !

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by