フィルターのクリア

New user, can someone solve this? I know I need to use colon and element-wise.

2 ビュー (過去 30 日間)
Rodrigo Andrade
Rodrigo Andrade 2018 年 8 月 13 日
コメント済み: Rodrigo Andrade 2018 年 8 月 13 日
Create a row vector x that starts at -2, ends at +2 with a step size of 0.5. Use x to create a vector y using the following equation: y = 3x^2 + 2x - 6

採用された回答

ES
ES 2018 年 8 月 13 日
x = -2:0.5:2;%creates an array x with elements -2 to 2 with step size 0.5
y = 3*x.*x + 2*x -6

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by