Hi , i want to build a matrix
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Husam
el 21 de Nov. de 2022
Comentada: Husam
el 21 de Nov. de 2022
5 comentarios
Jan
el 21 de Nov. de 2022
Fine. You do not expect that the members of the forum read this article to find out, what C, A, B and ny is, hopefully. This is your turn. So please explain the details. Post the current code and ask a specific question.
Respuesta aceptada
David Hill
el 21 de Nov. de 2022
C=rand(1,3);
B=rand(3,1);
A=rand(3,3);
n=size(A,1);
a=eye(n);
y=4;
H=diag(repelem(C*B,n*y));
for k=-1:-1:-n*y+1
a=a+A^-k;
H=H+diag(repelem(C*a*B,n*y+k),k);
end
H
Más respuestas (0)
Ver también
Categorías
Más información sobre Splines 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!