Creating a function in MATLAB
古いコメントを表示
Here is my question. I feel like this is an easy task but somehow cannot create a function to do this for me.
Create a function which given a value x, returns a value f(x) according the
following equation:
f(x)=xsin(x).
Thanks for the help!
採用された回答
その他の回答 (1 件)
Image Analyst
2013 年 2 月 2 日
2 投票
Is this homework? Did you look up how to define functions in the help? Do you know that you need to use ".*" between the x and the sin?
カテゴリ
ヘルプ センター および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!