Write a MATLAB script to find the sum and the number of the odd negative numbers in a 𝑁 × 𝑀 matrix ?
1 次查看(过去 30 天)
显示 更早的评论
clear all clc x=input('enter N x M marix '); a=rem(x,2); b=~a; z=~b; d=b .* x; k=d + z; z=prod(prod(k)); disp(['The multiplies of even number is equal to ' num2str(z)]);
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!