write statement without using for loop

 Accepted Answer

More Answers (1)

use if condition?
if bi = 0
gi == alpha;
else
gi == beta;
end

Categories

Find more on Signal Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!