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

20 次查看(过去 30 天)
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]

回答(1 个)

Clay Swackhamer
Clay Swackhamer 2022-8-1
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'

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by