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

 採用された回答

Alan Stevens
Alan Stevens 2020 年 7 月 27 日

0 投票

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 件のコメント

Ramesh B
Ramesh B 2020 年 7 月 28 日
Thank you Alan. it works.
Apprecitae your time and help.
Thanks

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

その他の回答 (0 件)

カテゴリ

製品

リリース

R2018b

タグ

質問済み:

2020 年 7 月 27 日

コメント済み:

2020 年 7 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by