Professional Documents
Culture Documents
REGLOS LCST Lab
REGLOS LCST Lab
INSTITUTIONAL
PROGRAM
SWITCHING THEORY
and ethical responsibility
[LABORATORY]
effectively
ACTIVITY 1: REVIEW OF
and modern engineering tools necessary
for engineering practice
SYSTEMS
CO1. Demonstrate implementation
techniques for individual logic gates.
LEARNING
© R. Raguindin 2019
(file:///C:/Users/MSI/Downloads/LCS
T-ACTIVITY1%20(1).pdf)
Objectives
To review the capabilities of MATLAB™ and to utilize MATLAB™ to perform
binary, octal and hexadecimal number operations.
REGLOS, KATHLEEN
JHOREN T.
201513495
BS Electrical Engineering
DATA SHEET
PROCEDURE ANSWER
1. Convert decimal 2019 to binary.
11111100011
dec2bin(2019)
help dec2base.
For the Spirit God gave us does not make us timid, but gives us
DATA SCREENSHOTS
SC1.
SC1. Converting decimal number system 2019 to binary system using the command
dec2bin.
SC2.
SC2.The above image shows the addition of two binary numbers by simply setting letter a and
b to a specific binary number (1001 and 1100) so that when using the command
dec2bin(bin2dec(a)+bin2dec(b)) we can simply use the letter, set with a specific value.
For the Spirit God gave us does not make us timid, but gives us
SC3.
Sc3. The above image shows the command when subtracting two binary numbers (1101 and
11).
SC4.
Sc.4 The above image shows the conversion of binary fraction (11.001) to decimal.
For the Spirit God gave us does not make us timid, but gives us
Sc5.1
SC5.1 The above image shows the conversion of octal to decimal but octal number
system only accepts the numbers from zero to seven so the answer is error.
SC5.2
Sc5.2 The above image shows the conversion of octal (2017) to decimal using the
oct2dec command.
For the Spirit God gave us does not make us timid, but gives us
SC6.
For the Spirit God gave us does not make us timid, but gives us
Sc7.
Sc7. The above image shows the division of two octal numbers. Again, base 8 should also be
input when using the dec2base command.
SC8.
Sc8. The above image shows the conversion hexadecimal (face) to decimal.
SC9.
Sc9. The above image shows raising a hexadecimal with another hexadecimal.
For the Spirit God gave us does not make us timid, but gives us
DATA ANALYSIS
As I conducted the activity number 1 entitled “Review of Binary-based Number Systems” with
the use of MATLAB. I was able to analyze different commands that can be used to convert decimal to
binary, octal to decimal, binary to decimal,. Etc. For example, the conversion of decimal 2019 to binary.
I also learned that binary number system is composed of only two digits, which are 1 and 0. For octa, it
has only 0-7 number values which implies for my answer in number 5.a ((oct2dec (‘2019’)) which is
error. For number 6, with the command (dec2oct(oct2dec(‘17’)*oct2dec(‘62’)), the result will also
appear as error, I used the command help dec2base to understand it properties, with this I was able
to understand that the product should be in base 8 to be able to get the right answer, same goes for
number 7. For number 8, conversion of hexa to decimal can easily be solve as long as the values of
hexadecimal used are from 0-9 and letters A to G, letters A to G corresponds to numbers 11-16 . Same
For the Spirit God gave us does not make us timid, but gives us
CONCLUSION
I therefore conclude that MATLAB is an easy way to convert, raise, multiply, add, subtract nor
divide octa, decimal, hexa and binary number systems but not all values can be converted directly from
one number system to another. I also concluded that when using the MATLAB’s commands, properties
of each number system should be applied to the values given, specially the corresponding base because
if not, the answer will always appear as error even we input the right commands.
RECOMMENDATIONS
number system for it will help the students increase the knowledge about it when
using MATLAB. Also always double check the answers personally using calculator
or manual calculation since it is discussed under the Logic Circuit and Switching
OTHER LEARNINGS
In addition to what I have learned, binary based number system is the language of
computer, but computer does not understand By studying other number systems
such as decimal (10), binary (base 2), octal (base 8), hexadecimal (base 16), we will
For the Spirit God gave us does not make us timid, but gives us