For loop printed only last value.

조회 수: 6 (최근 30일)
shivani badodiya
shivani badodiya 2018년 7월 25일
댓글: shivani badodiya 2018년 7월 25일
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일
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일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by