Hello, I didn't get the following code:
Mostrar comentarios más antiguos
M = reshape(linspace(11,18,8),[2,2,2])
M([1,2],[2,1],[2,1])
A1 = [2,2;2,1]; v = [2,1];
M(A1,v,1)
*****************************
ans =
14 12
14 12
14 12
13 11
i didnt get this ans, more precisely, im confused that what A1=[2,2;2,1] in M(A1,v,1) do???
************************************************************************
1 comentario
KSSV
el 30 de Oct. de 2018
It is indexing the matrix..read about MATLAB indexing.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!