



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The solution to problem 4-37, which involves identifying the allowable v2 values for given r3 values using matlab code. The solution includes two loops: a low loop and a high loop, each with its own set of variables and constraints. The document also includes instructions for constructing plots of r3 versus v2, which will help visualize the relationship between these variables.
Typology: Slides
1 / 6
This page cannot be seen from the preview
Don't miss anything!




%Constraint Col Vector V V = [v1; 0; - v2; 0; 0]; % find soltion vector for currents, C, from AC=V C = A\V; % Collect last conforming set v2_hi = v2; i1_hi = C(1); i2_hi = C(2); i3_hi = C(3); i4_hi = C(4); i5_hi = C(5); %increment v2 by 10 mV UP v2 = v2 + 3.5; end %display "hi" vars v2_hi display('currents in mA') i1_high = 1000i1_hi i2_high = 1000i2_hi i3_high = 1000i3_hi i4_high = 1000i4_hi i5_high = 1000i5_hi % % display('Hit ANY KEY to start part-b Calculation') pause % % Part-b => find v2 = f(R3) where R3 ranges of 150-250 kOhm % % use above while-loops nested in a for loop m = 0; % initialize lo-vector index (the loop counter) for k = 150:250 % use R3 = 1000k AR3 = [R1 0 0 R4 0; 0 R2 0 - R4 R5; 0 0 1000*k 0 - R5;...