Website octave online

The purpose of this lab is to give an introduction to using MATLAB for engineering computation. You will learn some basic syntax and computer science principles. Due to the online format of this class, we will be using Octave Online (Links to an external site.), a free, open-source environment that resembles MATLAB. Octave and MATLAB have the same syntax and whatever scripts you write in Octave will also run in MATLAB.

PROCEDURE
As usual, include a comment at the top explaining the purpose of the script, your name, and the date it was created.

Create a script called parallel.m. In this script, you will be:
Creating three variables for three resistance values and a variable for the voltage source value. Be sure your variable names reflect what the variable is storing.
Computing the equivalent resistance for resistors in parallel.
Computing current and power delivered by the voltage source.
Run two cases of your code with the following test cases:
Test Case 1: R1 = 120 Ohms, R2 = 230 Ohms and R3 = 250 Ohms. Voltage source = 10V.

Test Case 2: R1 = 25 Ohms, R2 = 70 Ohms and R3 = 100 Ohms. Voltage source = 9V.

  1. Using the node voltage method learned in class, write all equations in standard form for each node voltage. Create a script called matrix solve.m.

Make a matrix A with coefficients of the node voltage equation
Create a matrix b of equated constants from node voltage equation
Back-solve for x using x = A\b.

Sample Solution