Creating a table for publishing for the matrix I defined

6 ビュー (過去 30 日間)
Mohsen Nashel
Mohsen Nashel 2019 年 9 月 16 日
コメント済み: Mohsen Nashel 2019 年 9 月 16 日
I'm trying to plot the outputs of specific heat vs. temperature fro the range of temperatures T=300 to T=3000 for the formula given in the picture. I also need a table of the values in the output with the title for the table and naming the colomns, not just have them as variable names.Screen Shot 2019-09-15 at 11.22.22 PM.png How can I do that?
dT=300;
T=300:dT:3000;
theta_v=3400;
R=287;
C_vv=((R*theta_v^2*(exp(theta_v./T)))./(((exp(theta_v./T))-1).^2.*T.^2));
figure(1)
plot(T, C_vv)
grid
xlabel('Temperature')
ylabel('Cv')
title('Vibrational Specific Heat vs. Temperature for Nitrogen')

採用された回答

madhan ravi
madhan ravi 2019 年 9 月 16 日
TABle = table(T(:),C_vv(:),'VariableNames',{'Temperature','Heat'}) % I don’t know what you mean by naming columns isn’t that VariableNames do?
  1 件のコメント
Mohsen Nashel
Mohsen Nashel 2019 年 9 月 16 日
You actually got it right. Thank you so much!

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

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by