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 个评论
Stephen23
2023-8-2
Note that the square brackets are completely superfluous. The MATLAB approach is simply:
C= 200:-5:0;
回答(1 个)
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 Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!