Matlab help

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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories