hi,
unbale to plot is showing dimentinal error
close all
clc
Gi=0.995;
Ea=0.4;
k=0.0000862;
pi_Q=1;
Pi_E=1;
m=2.4;
T=linspace(40,100,5)
y=(exp.((-Ea/k).*((1/(T+273))-(1/313)))) % temp factor
figure
plot(T,y)
xlabel('T')
ylabel('Temp Factor')
grid on
how to make dimention equal to find y for T values.
Thanks

 采纳的回答

As follows:
Gi=0.995;
Ea=0.4;
k=0.0000862;
pi_Q=1;
Pi_E=1;
m=2.4;
T=linspace(40,100,5);
y=exp((-Ea/k).*((1./(T+273))-(1/313))); % Removed dot immeditely after exp; inserted a dot before /(T+273)
figure
plot(T,y)
xlabel('T')
ylabel('Temp Factor')
grid on

1 个评论

Thank you Alan. it works.
Apprecitae your time and help.
Thanks

请先登录,再进行评论。

更多回答(0 个)

类别

产品

版本

R2018b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by