Matlab Only Outputting One Value
古いコメントを表示
Hi, I am trying to evaluate the expression (cos(4*x) + sin(x))/(2*atan(2*x) + 2) for a list of x-values between 0:5. I go to solve but matlab only outputs one singular value. Also, when I try to plot it, nothing seems to come up. I'm sure the is definitely an error here with my thought process that maybe could do with some simplier explanations to help me understand. Does anyone know the reason for this and how to fix it?
code:
x = 0:1:5
x =
0 1 2 3 4 5
>> f = (sin(x)+cos(4*x))/((2*atan(2*x))+2)
f =
-2.401493151985125e-04
>>
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Programming についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!