필터 지우기
필터 지우기

for loop for a pair of months over a year

조회 수: 1 (최근 30일)
PureFleet
PureFleet 2021년 12월 2일
댓글: Rik 2021년 12월 2일
I want to make 2 for loops where I have the months in a year paired together
i.e plotindex1 jan + feb, may + june, september + october
plotindex2 march + april, july + august, november + december
how would i do it so in plotindex1 the months selected would be represented as 1 and the rest as 0 and vice versa for plotindex2
  댓글 수: 1
Rik
Rik 2021년 12월 2일
You can find guidelines for posting homework on this forum here. If you have trouble with Matlab basics you may consider doing the Onramp tutorial (which is provided for free by Mathworks). If your main issue is with understanding the underlying concept, you may consider re-reading the material you teacher provided and ask them for further clarification.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by