フィルターのクリア

How to get selected value in a vector ?

2 ビュー (過去 30 日間)
Atique Barudgar
Atique Barudgar 2019 年 11 月 24 日
編集済み: Walter Roberson 2019 年 11 月 25 日
I have temperature data of about 120 days and I want to select temperature of 1,12,24,36,48,60,72,84,96,108 and 120th day, How to select it?
When I am trying by this
for x=1:12:120
it is taking for 1, 13, 25 and so on
if I take x==linspace(0,120,11)
but I dont have any value at 0 i.e 0th day dont exist, it starts frrom 1st day.
Pls Help

採用された回答

Bryan
Bryan 2019 年 11 月 24 日
編集済み: Bryan 2019 年 11 月 24 日
for x = [1 12:12:120]
  1 件のコメント
Atique Barudgar
Atique Barudgar 2019 年 11 月 25 日
Thanks Brother

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 11 月 24 日
編集済み: Walter Roberson 2019 年 11 月 25 日
for x=[1,12:12:120]
More obscurely in some ways, less obscurely in others:
for x = max(1, 0:12:120)
  1 件のコメント
Atique Barudgar
Atique Barudgar 2019 年 11 月 25 日
Thanks Brother

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by