what is the error in this matlab code:
syms x;
function y=f(x);
f(x)=f(x-1)+f(x-2);
f(0)=1
f(1)=1
for x=2:10
y
end
i want to generate the first 10 terms of fibonacci series w/o having to define a function in differnt m-file and withut using arrays. Please help
syms x;
function y=f(x);
f(x)=f(x-1)+f(x-2);
f(0)=1
f(1)=1
for x=2:10
y
end
i want to generate the first 10 terms of fibonacci series w/o having to define a function in differnt m-file and withut using arrays. Please help