Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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 visualización (últimos 30 días)
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

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by