I want to cut a vector into even number of terms in a loop
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
krishna Chauhan
le 16 Sep 2021
Commenté : krishna Chauhan
le 16 Sep 2021
I am using a loop having multiple files having different lengths, and trying to make this length equal to an even number. Using following code but its not working. Any suggestions
save_T = 35;
if save_T is even
continue
else save_T=save_T-1;
0 commentaires
Réponse acceptée
KSSV
le 16 Sep 2021
save_T = 35;
if mod(save_T,2)==0 % is even
continue
else save_T=save_T-1;
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements 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!