For loop printed only last value.

I want to display whole years 2011 to 2017 but i am getting only 2017.I attached my code snippet please correct my mistake.

4 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 25 日
編集済み: KALYAN ACHARJYA 2018 年 7 月 25 日
Share the "AWS_Dundi_Aug2011_April2017.xlsx" file, so that we can test it
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 25 日
編集済み: KALYAN ACHARJYA 2018 年 7 月 25 日
Sorry, I am not getting what you exactly looking for, delete the answer, you have answered the question yourself so that others can help you. Use this comments section for any further clarification.
KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 25 日
More clarification needed, what you exactly looking for. You have said, getting 2017 only, but when I run the code, it shows 2016 also?
shivani badodiya
shivani badodiya 2018 年 7 月 25 日
yes but i want 2011 to 2017 all 7 years,by your solution it is showing 2016 and 2017 only, i need all.

サインインしてコメントする。

回答 (1 件)

shivani badodiya
shivani badodiya 2018 年 7 月 25 日

0 投票

I attached data with 3 column i have more columns in this sheet but i want to extract year 2011 to 2017 and for each year i want month 11 12 1 2 3 4 only.

2 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 7 月 25 日
Please check is your answer same?
shivani badodiya
shivani badodiya 2018 年 7 月 25 日
編集済み: shivani badodiya 2018 年 7 月 25 日
it shows 2017 and 2016 result only and for 2016 it is showing month 11 and 12 only.i want to print all years 2011 to 2017

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

質問済み:

2018 年 7 月 25 日

コメント済み:

2018 年 7 月 25 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by