⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex4_5.m

📁 Programs for the book Advanced Engineering Mathematics using MATLAB, 2ndEd.
💻 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 + -