I have no idea what your function is. You can do something like this:
T = linspace(270, 300, 10); % Create Temperature Vector
p0 = [1; 1]; % Initial Parameter Estimates (Column Vector)
fcn = @(p,T) (p(1)*T.^2 - p(2)*T - 10); % Create Function With Two Parameters
for k1 = 1:numel(T)
P(:,k1) = fsolve(@(p)fcn(p,T(k1)), p0); % Solve & Store Results For Each Value Of ‘T’
end
figure plot(T, P) grid
