Info
此问题已关闭。 请重新打开它进行编辑或回答。
Write a function called sum_range that takes two numbers, computes their sum and (a)outputs 1 if their sum is greater than or equal to zero. (b)outputs 0 if their sum is less than zero. Write the code
1 次查看(过去 30 天)
显示 更早的评论
function sum_range=sum_range
i=[-1;-8;-4]; j=[2;3;6];
if i>j
A(i,j)=1
end
if i<j
A(i,j)=0
end
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!