Computer Task 1
Computer Task 1
engineering tools, such as MATLAB and Multisim/PSPICE, in the realm of basic circuit
analysis principles and honing their adeptness in employing computational aids for
transcends mere theoretical understanding, delving into the practical nuances of circuit
experimentation, learners are afforded the opportunity to bridge the gap between abstract
engineering fundamentals. Moreover, this immersive experience serves as a catalyst for the
development of crucial skills vital for success in the ever-evolving landscape of engineering
practice. Thus, this experiment not only equips participants with technical proficiency but
also fosters a mindset of inquiry and innovation essential for navigating complex engineering
Procedures:
the circuit analysis tasks. Following an introductory session, students were presented with
a series of five subtasks, each designed to incrementally build upon their understanding of
circuit analysis principles. In the first subtask, learners were instructed to model simple
circuits using MATLAB, applying Kirchhoff's laws and Ohm's law to solve for voltage, current,
and power values. Subsequent subtasks introduced more complex circuit configurations,
their theoretical calculations and gaining proficiency in using simulation software for circuit
problem-solving and analysis. Finally, participants reviewed their findings, discussed any
Subtask 1.1 introduced participants to solving systems of linear equations using MATLAB, a
powerful computational tool widely utilized in engineering and scientific disciplines. Participants
began by formulating systems of linear equations representing circuit configurations, with the aim of
solving for unknown variables such as voltages and currents. Leveraging MATLAB's matrix
manipulation capabilities, learners constructed coefficient matrices and right-hand side vectors
unknown variables using techniques such as Gaussian elimination or matrix inversion. However,
"NaN" (Not a Number) outputs. This occurrence signified dependent equations within the system,
computational skills and gained insights into the complexities of circuit analysis. Overall, Subtask
1.1 provided participants with a foundational understanding of using MATLAB for solving systems of
linear equations, equipping them with essential tools for tackling circuit analysis problems in
subsequent tasks.
In this code, the coefficient matrix will be noted as “A”, and the right-hand side vector will be “B”
The system of linear equations is represented as Ax = B. The equation is re-arranged to solve for x.
When you use MATLAB to solve for x1, x2 and x3 in the given matrix form, the coefficient is displayed
as “NaN”, which means “Not a Number”. In cases like this, the rows of the matrix are dependent, and
the detrminant is 0. This would lead us to an indeterminate system of equations, meaning there is
infinite solutions. Singular matrices are a challenge in system of equations because the system
doesn’t really have a unique solution. It suggests that the circuit configuration/analysis should be
Input:
Output:
Question
question
Input:
output:
Subtask 1.2 immersed participants in the realm of signal representation and visualization
using MATLAB, a versatile computational tool widely employed in signal processing and analysis.
Participants began by defining mathematical functions representing voltage signals, with parameters
such as frequency, amplitude, and phase. Leveraging MATLAB's plotting functions, learners
generated graphical representations of these signals to visualize their characteristics and behaviors
over time.
parameters such as sampling frequency and signal duration to observe corresponding changes in
signal representation. Through iterative experimentation, participants gained insights into the
relationship between parameter settings and signal properties, discerning patterns and trends within
signal waveforms.
increasing the number of data points (N) to achieve smoother and more detailed plots. However,
participants also recognized the trade-off between plot smoothness and computational complexity,
representation and visualization using MATLAB, fostering an understanding of signal properties and
a)
Inputted code calling the function written in part a, given the parameters in part B:
output for the code shown right above:
part c)
Adjusted code to make graphs easier to read:
Adjusted output:
The choice of value “N” impacts how the plotted signals are shown. A smaller value of N would result
in a more choppy, inconsistent appearance, which leads to more missing details of the waveform. A
larger value of N results in a smoother, more consistent plot which makes details of the signal easier
In Subtask 1.3, participants delved into circuit analysis utilizing Multisim/PSPICE, a powerful
simulation tool widely employed in electrical engineering. This segment aimed to bridge theoretical
circuit concepts with practical simulation, enhancing participants' comprehension and proficiency
in circuit analysis. Initially, learners familiarized themselves with the software interface, navigating
through its features and functionalities essential for modeling and simulating circuits. Subsequently,
Through the utilization of Multisim/PSPICE, students were able to simulate circuit behavior
under different conditions, such as varying input voltages or component values. By observing
simulation results, participants gained insights into voltage and current distributions, node voltages,
and power dissipation across circuit elements. Additionally, the software facilitated the visualization
of transient and steady-state responses, aiding in the interpretation of circuit dynamics over time.
factors. By conducting systematic simulations and analyzing resulting data, learners developed a
segment aimed to fortify participants' comprehension of circuit principles and enhance their
circuit theorems, such as Kirchhoff's laws, Ohm's law, and voltage/current division, to confirm via
simulation techniques.
the principles under examination and simulated their behavior within the Multisim/PSPICE
participants explored how variations in components and changes in circuit topology affected
theorem validity, gaining insights into the robustness and limitations of theoretical models in real-
world contexts.
circuit theorems in circuit analysis and design, elucidating their relevance in engineering practice. By
engaging in hands-on verification exercises, learners deepened their conceptual understanding and
honed their critical thinking skills, preparing them for addressing complex engineering challenges
Learners recognized the significance of the voltage at the high resistance point of the IV curve
as it represents the Vth, the y-intercept, while the slope of the curve, representing the change in
voltage over the change in current, illustrates the Rth. This insight provides a tangible link between
Subtask 1.5 focused on Op Amp circuit analysis using Multisim/PSPICE, where participants
delved into the behavior and applications of operational amplifiers in various circuit configurations.
Operational amplifiers, commonly referred to as Op Amps, are ubiquitous in modern electronics and
serve as essential building blocks in numerous circuit designs, ranging from signal processing to
Participants began by exploring basic Op Amp circuits, such as voltage followers, inverting
amplifiers, and non-inverting amplifiers, using Multisim/PSPICE to simulate their operation and
investigated key performance parameters, including gain, bandwidth, input/output impedance, and
amplifiers, difference amplifiers, and integrators, exploring their applications in practical circuit
designs. By simulating circuit responses to varying input signals and operating conditions,
participants gained a comprehensive understanding of Op Amp behavior and its implications for
circuit performance.
Overall, Subtask 1.5 provided participants with valuable hands-on experience in Op Amp
circuit analysis, enabling them to apply theoretical concepts to practical circuit designs and
proficiency in circuit analysis techniques and developed insights into the design and optimization of
practical experiences to participants in the field of circuit analysis. Through the utilization of MATLAB
and Multisim/PSPICE, learners have not only deepened their understanding of fundamental circuit
principles but have also cultivated essential skills in computational problem-solving. The
completion of the five subtasks has enabled students to navigate through a diverse range of circuit
scenarios, from basic to more complex, thereby broadening their analytical capabilities and
bolstering their confidence in tackling real-world engineering challenges. By bridging the gap
between theory and application, this experiment has empowered participants to apply abstract
concepts in tangible contexts, laying a solid foundation for their future endeavors in electrical
engineering. Moving forward, the lessons learned from this experiment will undoubtedly serve as a
springboard for continued growth and exploration in the dynamic field of engineering. As students
embark on their professional journeys, they can draw upon the knowledge and skills acquired here
to address the intricate problems of tomorrow, driving innovation and progress in the realm of
electrical engineering.