Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1498
Number of posts: 2178

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Matlab help Posted by anurag992 on 16 Dec 2012 at 11:32 AM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.