How to extract data from an array?

184 次查看(过去 30 天)
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by