フィルターのクリア

Can someone help to write a column range vector for a specific calendar year?

1 回表示 (過去 30 日間)
Sanley Guerrier
Sanley Guerrier 2023 年 7 月 16 日
コメント済み: Sanley Guerrier 2023 年 7 月 16 日
Hello, can someone help me, please?
I want to write a quarterly hour column vector for year 2023 and I would like it to be a repeating range vector like [0 1 2 3 0 1 2 3.....]. I have no clue how to do it. It will be a matrix close to 35040 x 1.
Thank you!
% for example
vec= 0
1
2
3
0
1
2
3
0
1
2
3

採用された回答

Voss
Voss 2023 年 7 月 16 日
vec = repmat([0;1;2;3],365*24,1);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCalendar についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by