Professional Documents
Culture Documents
Familiarization to MATLAB
TITLE
Submitted to:
Submitted by:
BSCpE - T091
Discussion
List of Commands
Code:
ftemp = input('Input number in Fahrenheit: ')
C = (ftemp-32)*5/9
In the first problem, we were asked to ask the user for input temperature in
Fahrenheit Scale and perform a conversion to Celsius scale. The problem is pretty
straightforward and the solution was pretty much laid out for the student. The
students were even given the formula that they will use to convert Fahrenheit to
Celsius. This problem introduced us to assigning values to variables, performing
arithmetic operations, and reading user inputs with prompts. This activity
introduced us the concept that MATLAB is a development environment that utilizes
Code:
A = [1 2 3]
B = [2 4 6]
a = transpose(A)
res = B*a
dot(A,B)
Code:
A = [1 2 3]
B = [2 4 6]
a = transpose(A)
res = B*a
dot(A,B)
A
B
a
transpose(ma
trix)
res
dot(A,B)
Some of the commands and codes that were performed were pretty
straightforward and the ones that is slightly more difficult can be easily found in the
documentation of the Help page of MATLAB. The significance of this exercise is to
put into perspective the way we will be dealing with signals. That is, we will be
treating digital signals as if they are matrices where each values are elements in the
said matrix.
Digital Signal Processing maybe done manually, however as this experiment
tries to show the students is that there are pre-built functions that the students are
encouraged to use to make their activities and calculations easier. These are
commands that have been built into the software itself and is guaranteed to be
mathematically correct to some degree. We may use the included Help manual for
further definitions of these commands. The Help manual proved to be quite
effective as it is typically faster than accessing the internet for information on these
commands.
It was also implied that these commands are only helpful only if we know how
they functions and how the operations are dealt with the digital signals that we are
going to be processing. So the arithmetic and logic functions were also introduced
to us with some level of detail.
Conclusion