write statement without using for loop

조회 수: 1 (최근 30일)
Elysi Cochin
Elysi Cochin 2019년 2월 17일
답변: madhan ravi 2019년 2월 17일
Untitled.png
how to write this statement without using for loop

채택된 답변

madhan ravi
madhan ravi 2019년 2월 17일
gi=Alpha.*(bi==0)+Beta.*(bi==1)

추가 답변 (1개)

aara
aara 2019년 2월 17일
use if condition?
if bi = 0
gi == alpha;
else
gi == beta;
end

카테고리

Help CenterFile Exchange에서 Signal Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by