photo

Lakshan Bandara


Last seen: plus de 4 ans il y a Actif depuis 2019

Followers: 0   Following: 0

Statistiques

MATLAB Answers

2 Questions
0 Réponses

RANG
159 835
of 300 853

RÉPUTATION
0

CONTRIBUTIONS
2 Questions
0 Réponses

ACCEPTATION DE VOS RÉPONSES
100.0%

VOTES REÇUS
0

RANG
 of 21 094

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 171 294

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Thankful Level 2
  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


Starting from the year 1697, store all leap years until 2017 in a vector. A leap year is a year which is divisible by 4 but NOT 100 but if the year is divisible by 100 then it must also be divisible by 400 to be considered a leap year.
clc; clear; close all; for x=1697:2017 if rem(x,4)==0 && rem(x,100)~=0 leap=x end if rem(x,100)==0 && rem...

environ 6 ans il y a | 1 réponse | 0

1

réponse

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

environ 6 ans il y a | 1 réponse | 0

1

réponse