write statement without using for loop

1 vue (au cours des 30 derniers jours)
Elysi Cochin
Elysi Cochin le 17 Fév 2019
Untitled.png
how to write this statement without using for loop

Réponse acceptée

madhan ravi
madhan ravi le 17 Fév 2019
gi=Alpha.*(bi==0)+Beta.*(bi==1)

Plus de réponses (1)

aara
aara le 17 Fév 2019
use if condition?
if bi = 0
gi == alpha;
else
gi == beta;
end

Community Treasure Hunt

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

Start Hunting!

Translated by