photo

James Justice


Active since 2014

Followers: 0   Following: 0

Message

Statistics

All
  • Solver

View badges

Feeds

View by

Question


When I run this code my fibonacci sequence is missing a beginning 1. Can someone please tell why it is doing this and how I can fix it?
The output I get when inserting 1 for the fist number, 1 for the second number, and 10 for the total number of elements is the...

10 years ago | 1 answer | 0

1

answer

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

11 years ago