MATLAB HELP
hey im new to matlab and i have to make a mfile in matlab that uses only two (scalar) variables, x and y. any help would be much appreciated
function taylor2
fprintf(‘values of x approximation y\n’)
x= 1 ;
y = 2 ;
h = 0.01 ;
fprintf ( ‘%8.2f ’,x), fprintf (‘%19.8f \n’,y)
for i = ____________________
y = ______________________________ ;
x = __________________________ ;
fprintf ( ‘%8.2f ’,x), fprintf (‘%19.8f \n’,y)
end
function taylor2
fprintf(‘values of x approximation y\n’)
x= 1 ;
y = 2 ;
h = 0.01 ;
fprintf ( ‘%8.2f ’,x), fprintf (‘%19.8f \n’,y)
for i = ____________________
y = ______________________________ ;
x = __________________________ ;
fprintf ( ‘%8.2f ’,x), fprintf (‘%19.8f \n’,y)
end
0
Comments
Now what are you trying to do with them?