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

 Accepted Answer

Alan Stevens
Alan Stevens on 27 Jul 2020
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 Comment

Ramesh B
Ramesh B on 28 Jul 2020
Thank you Alan. it works.
Apprecitae your time and help.
Thanks

Sign in to comment.

More Answers (0)

Products

Release

R2018b

Tags

Asked:

on 27 Jul 2020

Commented:

on 28 Jul 2020

Community Treasure Hunt

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

Start Hunting!