- #1
xpack
- 37
- 0
I have this
Code:
delete s275x05.txt; diary s275x05.txt
clear; clc; close all; echo on
%
% Stewart 275/05
%
year=[0:1]; % n+1 = year + 50
pop=[728 906];
p=polyfit(year,log(pop),2)
plot(year,pop,'o','MarkerFaceColor','r')
hold on
x=[0:0.01:6];
y=exp(polyval(p,x));
plot(x,y)
hold on
%part a
%popluation at year 1900
x1900=3
%
echo off; diary off
What I am stuck at is how do I say I want the y value when x = 3?