ex4_5.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 11 行
M
11 行
% 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]'; % Eigenvectorsvb=[1 -1]';c1=(V(1)+V(2))/2; % Compute coefficientsc2=(V(1)-V(2))/2;fprintf(' The currents are as follows')i=(1/3)*c1*va + c2*vb
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?