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

 Risposta accettata

Alan Stevens
Alan Stevens il 27 Lug 2020

0 voti

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 Commento

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

Accedi per commentare.

Più risposte (0)

Prodotti

Release

R2018b

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by