Create a row vector named x that starts at 1, ends at 5, and each element is separated by 0.5.

36 visualizaciones (últimos 30 días)
The : operator uses a default spacing of 1, however you can specify your own spacing, as shown below.
x = 20:2:26
x =
20 22 24 26
TASK
Create a row vector named x that starts at 1, ends at 5, and each element is separated by 0.5.

Respuestas (1)

KSSV
KSSV el 22 de Jun. de 2021
iwant = 1:0.5:5 ;
Read the documentation please.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by