Plot for specific vibrational heat
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohsen Nashel
le 16 Sep 2019
Modifié(e) : madhan ravi
le 16 Sep 2019
Hello! I'm trying to plot the outputs of cv for the formula given in the picture to the range of temperatures between 300 to 3000. But it still gives me error due to the matrix size doesn't match. ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238477/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238477/image.png)
dT=100;
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 Nitrogent')
0 commentaires
Réponse acceptée
Star Strider
le 16 Sep 2019
Use element-wise operations:
C_vv=((R*theta_v^2*(exp(theta_v./T)))./(((exp(theta_v./T))-1).^2.*T.^2));
↑ ↑ ↑ ↑ ↑ ↑
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!