image thumbnail
from 7 segment display in a Simulink model by Wim Dekkers
A given number is transfered to BCD code and with a control block passed to the 7 segment display.

initsegment.m
clear
clc
y1(1:3) = [0.93 0.93 0.93];
y2(1:3) = [0.93 0.93 0.93];
y3(1:3) = [0.93 0.93 0.93];
y4(1:3) = [0.93 0.93 0.93];
y5(1:3) = [0.93 0.93 0.93];
y6(1:3) = [0.93 0.93 0.93];
y7(1:3) = [0.93 0.93 0.93];

Contact us at files@mathworks.com