Calculate function with given t
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Guan-Lin Chen
el 6 de Nov. de 2020
Respondida: KSSV
el 6 de Nov. de 2020
clc
clear all
close all
syms t
A = [-1, 1, 0;
1,-2, 1;
0, 1, -1];
[P,D] = eig(A)
Phi = P*expm(D*t)*inv(P)
thetanot=[0.1;0.3;0.2]
t_t=Phi*thetanot
dt = 1/1000;
t = 0:dt:1000*dt;
S1=sum(t_t(1,1))
Where S1 =
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/404680/image.png)
How do I plot the S1 with t ?
0 comentarios
Respuesta aceptada
KSSV
el 6 de Nov. de 2020
Read about fplot/ ezplot.
clc
clear all
close all
syms t
A = [-1, 1, 0;
1,-2, 1;
0, 1, -1];
[P,D] = eig(A)
Phi = P*expm(D*t)*inv(P)
thetanot=[0.1;0.3;0.2]
t_t=Phi*thetanot
dt = 1/1000;
t = 0:dt:1000*dt;
S1=sum(t_t(1,1)) ;
fplot(S1)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Number Theory en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!