How can I cut a vector?

조회 수: 51 (최근 30일)
Marianna Pizzo
Marianna Pizzo 2019년 3월 24일
댓글: Smarak 2023년 8월 3일
Hello, how can I cut a vector?
I have a vector whose lenght is 14114 and I want to cut the final par of it, in other words I want elements from 1 to 5547. How can I do?
I tried:
for k=1:n %n=5547
SkinResponseinS1(k,1)=SkinResponseinS1(k,1); %SkinResponseinS1 is the vector (14114x1) that I want to cut
end
but nothing happens.

채택된 답변

madhan ravi
madhan ravi 2019년 3월 24일
vector(1 : 5547)
  댓글 수: 3
Emile
Emile 2023년 8월 2일
👍
Smarak
Smarak 2023년 8월 3일
hemlo

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Shifting and Sorting Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by