Trying to find the odd and even number from 3:200 using equation mentioned below
1 回表示 (過去 30 日間)
古いコメントを表示
n = 3:1:200;
B = rem(n,2);
if B == 0
x = (n-4/2) + 0.5;
else
x = (n-3)/2 + 1 ;
end
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!