array with function inside

1 visualización (últimos 30 días)
massimiliano frasca
massimiliano frasca el 26 de Nov. de 2019
Respondida: Walter Roberson el 26 de Nov. de 2019
I have
dk =
0
(49*sin(x1_k))/50 - (49*x1_k)/50
and an array X 2xn
How can I obtain the array Dk 2xn where:
Dk(1, 1)= dk calculate in the point X(1,1)
Dk(2, 1)= dk calculate in the point X(2,1)
.
.
.
thanks
  1 comentario
darova
darova el 26 de Nov. de 2019
Looks correct for me
(49*sin(x1_k))/50 - (49*x1_k)/50 = 0

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 26 de Nov. de 2019
subs(dk, x1_k, X(:, 1))

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by