How to design 2:1 mux in simulink ?

18 views (last 30 days)
aastha
aastha on 15 Feb 2014
Answered: Nitish Kumar on 18 Nov 2020
as 2:1 mux is not present in simulink library of matlab so can anybody guide me how to generate 2:1 mux

Answers (1)

Nitish Kumar
Nitish Kumar on 18 Nov 2020
function output=my_new_2_isto_1_mux(D_0,D_1,select_line)
if(select_line==0)
output=D_0;
else
output=D_1;
end
end

Categories

Find more on Modeling 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!