delete or remove some value from vector

6 vues (au cours des 30 derniers jours)
Takim Mustakim
Takim Mustakim le 22 Avr 2022
Commenté : Takim Mustakim le 23 Avr 2022
wak(1)=poissrnd(60);
wk(1)=wak(1)
n=1;
while wk(n)<1000
n=n+1;
wak(n) = poissrnd(60);
wk(n) = wk(n-1)+wak(n)
end
how to delete the last value of "wk"
because the last value of "wk" more then 1000

Réponse acceptée

Sam Chak
Sam Chak le 22 Avr 2022
Perhaps you can try this to see if it is deleted.
wk(end) = []
  1 commentaire
Takim Mustakim
Takim Mustakim le 23 Avr 2022
WOw , thank you brother

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by