array with function inside

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 件のコメント

darova
darova 2019 年 11 月 26 日
Looks correct for me
(49*sin(x1_k))/50 - (49*x1_k)/50 = 0

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 11 月 26 日

0 投票

subs(dk, x1_k, X(:, 1))

カテゴリ

ヘルプ センター および File ExchangeOperators and Elementary Operations についてさらに検索

質問済み:

2019 年 11 月 26 日

回答済み:

2019 年 11 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by