How can I cut a vector?

43 vues (au cours des 30 derniers jours)
Marianna Pizzo
Marianna Pizzo le 24 Mar 2019
Commenté : Smarak le 3 Août 2023
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.

Réponse acceptée

madhan ravi
madhan ravi le 24 Mar 2019
vector(1 : 5547)
  3 commentaires
Emile
Emile le 2 Août 2023
👍
Smarak
Smarak le 3 Août 2023
hemlo

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Shifting and Sorting Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by