I want to cut a vector into even number of terms in a loop
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
KSSV
2021 年 9 月 16 日
save_T = 35;
if mod(save_T,2)==0 % is even
continue
else save_T=save_T-1;
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!