write statement without using for loop

1 visualización (últimos 30 días)
Elysi Cochin
Elysi Cochin el 17 de Feb. de 2019
Respondida: madhan ravi el 17 de Feb. de 2019
Untitled.png
how to write this statement without using for loop

Respuesta aceptada

madhan ravi
madhan ravi el 17 de Feb. de 2019
gi=Alpha.*(bi==0)+Beta.*(bi==1)

Más respuestas (1)

aara
aara el 17 de Feb. de 2019
use if condition?
if bi = 0
gi == alpha;
else
gi == beta;
end

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by