Borrar filtros
Borrar filtros

Create a column vector with elements counting down from 200 to 0 in increments of 5

24 visualizaciones (últimos 30 días)
I created the vector, C= [200:-5:0] and I git an error that reads, Variable C must have size[41 1]. It is currently of size [1 41]

Respuestas (1)

Clay Swackhamer
Clay Swackhamer el 1 de Ag. de 2022
Try transposing your output to flip it from a row vector (list of numbers going horizontally) to a column (list of numbers going vertically) like this:
C = C'

Categorías

Más información sobre Environment and Settings en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by