Community Profile

photo

Lakshan Bandara


2 total contributions since 2019

Lakshan Bandara's Badges

  • Thankful Level 1

View details...

Contributions in
View by

Question


'Store the first N (user enters N) Fibonacci numbers in a row vector.'I know how to get user entered number of fibbonachi numbers. But I don't know how to show them in a row vector.
clc; clear; close all; N=input('Enter the number = '); B(1)=0; B(2)=1; count=1; for i=3:N B(1,i)=B(i-2)+B(i-1); ...

3 months ago | 1 answer | 0

1

answer