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;

采纳的回答

KSSV
KSSV 2021-9-16
save_T = 35;
if mod(save_T,2)==0 % is even
continue
else save_T=save_T-1;
  2 个评论
krishna Chauhan
krishna Chauhan 2021-9-16
Thanks sir @KSSV, but I am wondering why is it not working, it goes to
continue entering input
mode again and again.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by