blob: c4daa34014c8134dfc58709c42254df13395e045 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
clc
// Fundamental of Electric Circuit
// Charles K. Alexander and Matthew N.O Sadiku
// Mc Graw Hill of New York
// 5th Edition
// Part 1 : DC Circuits
// Chapter 2: Basic Laws
// Example 2 - 7
clear; clc; close;
//
// Given data
i = 3.00;
R = 4.00;
//
// Calculations Current (io)
io = 3/0.50;
// Calculations Voltage (vo)
vo = 4*io;
//
// Display the result
disp("Example 2-7 Solution : ");
printf(" \n io : Current = %.3f A ", io);
printf(" \n vo : Voltage = %.3f Volt",vo);
|