How to extract data from an array?

조회 수: 190 (최근 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 CenterFile Exchange에서 Structures에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by