photo

James Justice


Aktiv seit 2014

Followers: 0   Following: 0

Nachricht

Statistik

All
  • Solver

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


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...

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Gelöst


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...

mehr als 10 Jahre vor