Info

此问题已关闭。 请重新打开它进行编辑或回答。

problem in solving code for arrehenius equation,To and Ta are in kelvin

4 次查看(过去 30 天)
clear all;close all;clc; k=8.617385*10^(-5); T0=298; EA=0.9; Ta = -40:10:70; n=(EA/k)*((1/T0)-(1/Ta)); AF=exp(n); %n=(EA/k)*((1/T0)-(1/(298))); %T=5; % for i=1:l % n=(EA/k)*((1/T0)-(1/((i*T)+293))); % AF(i)=exp(n); % end
plot(Ta,AF,'-rs','LineWidth',2,...
'MarkerEdgeColor','k',...
'MarkerFaceColor','b',...
'MarkerSize',10)
%plot(Ta,AF1);
% axes;
grid on;
% xlim([10 100]);
% ylim([0 800]);

回答(1 个)

Richard
Richard 2012-5-1
in your loop what is 'l' suppose to be? Your stating that your loop goes from 1 to 'l' but haven't specified what 'l' is.
From your loop I am guessing that the main problem is that you are not storing each iteration of i so try to replace 'n' with n(i) maybe. I can only guess at the moment as I am not sure what you are trying to do.

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by