Very easy question on arrayfun or vectorization

The question is:
x0 = [3;8]
K = [1 2 3 8 9 10; 2 3 9 -1 2 3];
How can I obtain P where
P = [[1 2;2 3]*x0 [3 8;9 -1]*x0 [9 10; 2 3]*x0]
In general K is very long so I need efficient way to do this.

1 comentario

Duplicates https://www.mathworks.com/matlabcentral/answers/347913-two-questions-on-vectorized-matrix-vector-multiplication

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Preguntada:

el 9 de Jul. de 2017

Cerrada:

el 9 de Jul. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by