multiplying vectors (easy one!)
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Sorry guys, an easy question:
how do I evaluete this function in the interval
x=[-0.2,0.8]
the function is f = 2.2785*T_0(x) - 0.2142*T_1(x) - 0.3595*T_2(x) - 0.1793*T_3(x) + 0.1810*T_4(x)
where T_k(x)=cos*(k*cos^-1(x))
c =
2.2785
-0.2142
-0.3595
-0.1793
0.1810
0 件のコメント
回答 (1 件)
KSSV
2020 年 6 月 11 日
m = 100 ;
x = linspace(-0.2,0.8,m) ;
Evaluate the function for every value of x. Read about element by element operations.
3 件のコメント
Paul Rogers
2020 年 6 月 11 日
KSSV
2020 年 6 月 11 日
Yes you can use that too.....two ways
- Fix the number of discretozations use linspace
- Fix the step size and ise : .
Paul Rogers
2020 年 6 月 11 日
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!