Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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

Respuesta aceptada

ES
ES el 13 de Ag. de 2018
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

Más respuestas (0)

Categorías

Más información sobre Entering Commands en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by