?? ex4_5.m
字號:
% EX4_5.M Verify Example 4.5 and demonstrate Equation4.20
% INPUT: Battery Voltage values [V1 V2]
% OUTPUT: Current in the loops
V=input('Battery voltage in loop 1 and 2 [V1 V2]= ')
va=[1 1]'; % Eigenvectors
vb=[1 -1]';
c1=(V(1)+V(2))/2; % Compute coefficients
c2=(V(1)-V(2))/2;
fprintf(' The currents are as follows')
i=(1/3)*c1*va + c2*vb
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -