Question about column operator vectors
显示 更早的评论
Why does vec = -1:-5 not output -1 -2 -3 -4 -5? Why does it say 1x0 empty double row vector? An explanation of this would be great. Thank you!
采纳的回答
更多回答(1 个)
Andrei Bobrov
2019-10-14
Use
vec = -1:-1:-5
or
vec = -(1:5)
类别
在 帮助中心 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!