MATLAB: How to plot an inversely proportional graph

graphinverseplot

So I have an assignment:
Chemical reaction rates are proportional to a rate constant, k that changes with temperature, T according to Arrhenius equation
?=??−???
For a certain reaction, Q=8000 cal/mol, R=1.987 cal/(mol.K) and A=1200 min-1 were recorded.
a. Determine the value of k for temperature from 100 K to 500 K in 50°increments.
b. Plot the graph of k vs 1/T. Label the graph appropriately.
My solution:
clear
clc
Q = 8000
R = 1.987
A = 1200
T = [100:50:500]
k = A.*exp(-Q./(R.*T))
plot(T, k, '--or')
title('Graph of k vs 1/T')
ylabel('k')
xlabel('1/T')
But the question asked for k vs 1/T . So how do I do this ?

Best Answer

plot(k,1./T) ;
You can find the inverse/ reciprocal using 1./T.