How to design 2:1 mux in simulink ?

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 Simulink in Help Center and File Exchange

Asked:

on 15 Feb 2014

Answered:

on 18 Nov 2020

Community Treasure Hunt

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

Start Hunting!