7 segment LED display | MATLAB CODY

preview_player
Показать описание
Check the problem statement here:

Prerequisite:

Brahmastra of Digit Extraction Algorithm & coding in MATLAB

Рекомендации по теме
Комментарии
Автор

I dont understand. Is there a video of you running it?

toiletbrush
Автор

every good effort needs appreciation on the planet earth, , ,

nelsondarwinpaktech
Автор

Code:


function y = seven_seg_led(x)
a=[6 2 5 5 4 5 6 3 7 6];
m=x;
y=0;
if(m>0)
while(m>0)
b=rem(m, 10);
y=y+a(b+1);
m=(m-b)/10;
end
else
y=6;
end
end

KnowledgeAmplifier
visit shbcf.ru