REALIZATION OF ARRAYS AND MATRICES
OBJECTIVE · To familiarize with the realization of arrays and matrixes and their visualization using plotting functions and GUI LEARNING OUTCOMES · After the completion of this experiment students will be able to approximate an array/matrix with matrix decomposition. SOFTWARE USED: MATLAB ® R2017a 1. The voltage, v, across a resistance is given as (Ohm’s Law), v=iR , where i is the current and R the resistance. The power dissipated in resistor R is given by the expression P = i 2 R. If R = 10 Ohms and the current is increased from 0 to 10 A with increments of 2A, write a MATLAB program to generate a table of current, voltage and power dissipation. PROGRAM clc; clear all ; close all ; R=10; % Resistance value i=[0:2:10]; % Generate current values v=i.*R; % array multiplication to obtain ...
Comments
Post a Comment