Academic License tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex,’-k’) tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex,’-k’) | {Error: The input character is not valid in MATLAB statements or expressions. } tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex,'-k') tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex,'-k') tt=0:0.01:2 tt = Columns 1 through 9 0 0.0100 0.0200 0.0300 0.0400 0.0500 0.0600 0.0700 0.0800 Columns 10 through 18 0.0900 0.1000 0.1100 0.1200 0.1300 0.1400 0.1500 0.1600 0.1700 Columns 19 through 27 0.1800 0.1900 0.2000 0.2100 0.2200 0.2300 0.2400 0.2500 0.2600 Columns 28 through 36 0.2700 0.2800 0.2900 0.3000 0.3100 0.3200 0.3300 0.3400 0.3500 Columns 37 through 45 0.3600 0.3700 0.3800 0.3900 0.4000 0.4100 0.4200 0.4300 0.4400 Columns 46 through 54 0.4500 0.4600 0.4700 0.4800 0.4900 0.5000 0.5100 0.5200 0.5300 Columns 55 through 63 0.5400 0.5500 0.5600 0.5700 0.5800 0.5900 0.6000 0.6100 0.6200 Columns 64 through 72 0.6300 0.6400 0.6500 0.6600 0.6700 0.6800 0.6900 0.7000 0.7100 Columns 73 through 81 0.7200 0.7300 0.7400 0.7500 0.7600 0.7700 0.7800 0.7900 0.8000 Columns 82 through 90 0.8100 0.8200 0.8300 0.8400 0.8500 0.8600 0.8700 0.8800 0.8900 Columns 91 through 99 0.9000 0.9100 0.9200 0.9300 0.9400 0.9500 0.9600 0.9700 0.9800 Columns 100 through 108 0.9900 1.0000 1.0100 1.0200 1.0300 1.0400 1.0500 1.0600 1.0700 Columns 109 through 117 1.0800 1.0900 1.1000 1.1100 1.1200 1.1300 1.1400 1.1500 1.1600 Columns 118 through 126 1.1700 1.1800 1.1900 1.2000 1.2100 1.2200 1.2300 1.2400 1.2500 Columns 127 through 135 1.2600 1.2700 1.2800 1.2900 1.3000 1.3100 1.3200 1.3300 1.3400 Columns 136 through 144 1.3500 1.3600 1.3700 1.3800 1.3900 1.4000 1.4100 1.4200 1.4300 Columns 145 through 153 1.4400 1.4500 1.4600 1.4700 1.4800 1.4900 1.5000 1.5100 1.5200 Columns 154 through 162 1.5300 1.5400 1.5500 1.5600 1.5700 1.5800 1.5900 1.6000 1.6100 Columns 163 through 171 1.6200 1.6300 1.6400 1.6500 1.6600 1.6700 1.6800 1.6900 1.7000 Columns 172 through 180 1.7100 1.7200 1.7300 1.7400 1.7500 1.7600 1.7700 1.7800 1.7900 Columns 181 through 189 1.8000 1.8100 1.8200 1.8300 1.8400 1.8500 1.8600 1.8700 1.8800 Columns 190 through 198 1.8900 1.9000 1.9100 1.9200 1.9300 1.9400 1.9500 1.9600 1.9700 Columns 199 through 201 1.9800 1.9900 2.0000 tt=0:0.01:2; ex=exp(-5*(tt-1)^2) {Error using ^ Inputs must be a scalar and a square matrix. To compute elementwise POWER, use POWER (.^) instead. } tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex) tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex,'-k') tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex,'-r') tt=0:0.01:2; ex=exp(-5*(tt-1).^2);plot(tt,ex,'.r') A=[1, 0; 0 ,2] A = 1 0 0 2 exp(A) ans = 2.7183 1.0000 1.0000 7.3891 expm(A) ans = 2.7183 0 0 7.3891 A=[1, -1; 4 ,2] A = 1 -1 4 2 expm(A) ans = -2.6833 -2.1613 8.6452 -0.5220 expm(10*A) ans = 1.0e+06 * 2.4284 -0.8320 3.3279 3.2604 U=[1 1;1 -1] U = 1 1 1 -1 inv(U) ans = 0.5000 0.5000 0.5000 -0.5000 D=[-1 0;0 -2] D = -1 0 0 -2 A=inv(U)*D*U A = -1.5000 0.5000 0.5000 -1.5000 expm(10*A) ans = 1.0e-04 * 0.2270 0.2270 0.2270 0.2270 expm(100*A) ans = 1.0e-43 * 0.1860 0.1860 0.1860 0.1860 D=[-1 0;0 2] D = -1 0 0 2 A=inv(U)*D*U A = 0.5000 -1.5000 -1.5000 0.5000 expm(100*A) ans = 1.0e+86 * 3.6130 -3.6130 -3.6130 3.6130 diag([1,2]) ans = 1 0 0 2 [D,M]=eig(A) D = -0.7071 -0.7071 -0.7071 0.7071 M = -1 0 0 2 [U,D]=eig(A) U = -0.7071 -0.7071 -0.7071 0.7071 D = -1 0 0 2 A= [ 0 1;-4 1] A = 0 1 -4 1 [U,D]=eig(A) U = 0.1118 - 0.4330i 0.1118 + 0.4330i 0.8944 + 0.0000i 0.8944 + 0.0000i D = 0.5000 + 1.9365i 0.0000 + 0.0000i 0.0000 + 0.0000i 0.5000 - 1.9365i exp(10*A) ans = 1.0e+04 * 0.0001 2.2026 0.0000 2.2026 exp(10*A) ans = 1.0e+04 * 0.0001 2.2026 0.0000 2.2026 exp(10*A) ans = 1.0e+04 * 0.0001 2.2026 0.0000 2.2026 exp(100*A) ans = 1.0e+43 * 0.0000 2.6881 0.0000 2.6881