How to extract data from an array?

183 Ansichten (letzte 30 Tage)
Nisar Ahmed
Nisar Ahmed am 15 Jun. 2021
Bearbeitet: Scott MacKenzie am 15 Jun. 2021
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.

Akzeptierte Antwort

Scott MacKenzie
Scott MacKenzie am 15 Jun. 2021
Bearbeitet: Scott MacKenzie am 15 Jun. 2021
t(700:1900)
P(700:1900)
Really, this is pretty basic stuff. I suggest you review Accessing Array Elements.
  1 Kommentar
Nisar Ahmed
Nisar Ahmed am 15 Jun. 2021
Oh, thanks, actually I confused with length, like P = length(t)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by