How to extract data from an array?

185 ビュー (過去 30 日間)
Nisar Ahmed
Nisar Ahmed 2021 年 6 月 15 日
編集済み: Scott MacKenzie 2021 年 6 月 15 日
Hi,
Suppose the length of t is 1922 (size is 1922 1) and I want extract from (700:1900), then how I can do it?
similarly an other array P is also function of t with size (1922 1), so how can I extract corresponding values of P with reference to t. like P(700:1900), I mean same size of t.

採用された回答

Scott MacKenzie
Scott MacKenzie 2021 年 6 月 15 日
編集済み: Scott MacKenzie 2021 年 6 月 15 日
t(700:1900)
P(700:1900)
Really, this is pretty basic stuff. I suggest you review Accessing Array Elements.
  1 件のコメント
Nisar Ahmed
Nisar Ahmed 2021 年 6 月 15 日
Oh, thanks, actually I confused with length, like P = length(t)

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by